ImageEn, unit iexPdfiumCore

TPdfObject.Scale

TPdfObject.Scale


Declaration

procedure Scale(ScaleX: Double; ScaleY: Double = -1);


Description

Scales a page object, e.g. Scale( 1.5 ) would make the image 50% larger.
If ScaleY is not specified, the ScaleX value would be used for both dimensions.

Note: You can also set Width/Height to scale an object


Example

// Halve the size of an object
ImageEnView1.PdfViewer.Objects[idx].Scale( 0.5 );

// Make object 10% larger
ImageEnView1.PdfViewer.Objects[idx].Scale( 1.1 );


See Also

X
Y
Width
Height
Matrix
Translate
TransformEx