[]
DsPdfJS API / DrawImageOptions
DrawImageOptions =
object
Provides options for drawing the image.
optionalalignX:ImageAlignHorz
The horizontal alignment of the image. The default is "Left".
optionalalignY:ImageAlignVert
The vertical alignment of the image. The default is "Top".
optionalclipBounds:Bounds|null
The clipping rectangle on the target surface.
optionalinterpolationMode:InterpolationMode
The sampling mode to use when drawing images with resizing. This property does not affect drawing to PdfContext.
optionalkeepAspectRatio:boolean
Indicates whether to keep the aspect ration of the image when resizing. The default if false.
optionalopacity:number
The image opacity. The default is 1.
optionalscaleToFill:boolean
If true, the image is scaled down as much as possible but covers the entire destination rectangle. If false, the image is scaled up as much as possible, but does not extend beyond the bounds of the destination rectangle. The value of this property is ignored if keepAspectRatio is false. The default if false.