| Modifier and Type | Method and Description |
|---|---|
static ObjectFitApplyingResult |
calculateRenderedImageSize(ObjectFit objectFit,
double absoluteImageWidth,
double absoluteImageHeight,
double imageContainerWidth,
double imageContainerHeight)
Calculates size of image to be render when certain
ObjectFit mode is
applied. |
public static ObjectFitApplyingResult calculateRenderedImageSize(ObjectFit objectFit, double absoluteImageWidth, double absoluteImageHeight, double imageContainerWidth, double imageContainerHeight)
ObjectFit mode is
applied. The width or the height of the image might be greater than the same
property of the image in a document. In this case parts of the image will not
be shown.objectFit - is an object-fit modeabsoluteImageWidth - is a width of the original imageabsoluteImageHeight - is a height of the original imageimageContainerWidth - is a width of the image to drawimageContainerHeight - is a width of the image to drawObjectFitApplyingResult objectCopyright © 1998–2020 iText Group NV. All rights reserved.