5.20231.904
wijmo.pdf Interface IPdfImageDrawSettings Wijmo API Interface

IPdfImageDrawSettings Interface

Represents the image drawing settings used by PdfPageArea.drawImage method.

If neither width nor height options are provided, then the image will be rendered in its original size. If only width is provided, then the image will be scaled proportionally to fit in the provided width. If only height is provided, then the image will be scaled proportionally to fit in the provided height. If both width and height are provided, then image will be stretched to the dimensions depending on the stretchProportionally property.

Heirarchy

Properties

Optional align

Determines the horizontal alignment in case of proportional stretching.

Optional height

height: number

Determines the height of the image, in points.

Optional stretchProportionally

stretchProportionally: boolean

Indicates whether an image will be stretched proportionally or not, if both width and height options are provided.

Optional vAlign

Determines the vertical alignment in case of proportional stretching.

Optional width

width: number

Determines the width of the image, in points.