IPdfImageDrawSettings Interface

File
wijmo.pdf.js
Module
wijmo.pdf

Represents the image drawing settings used by 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.

Properties

Properties

align

Determines the horizontal alignment in case of proportional stretching.

Type
PdfImageHorizontalAlign

height

Determines the height of the image, in points.

Type
number

stretchProportionally

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

Type
boolean

vAlign

Determines the vertical alignment in case of proportional stretching.

Type
PdfImageVerticalAlign

width

Determines the width of the image, in points.

Type
number