ImageEn, unit iexPdfiumCore |
|
TPdfObject.Translate
Declaration
procedure Translate(MoveX, MoveY: Double);
Description
Moves an object on the current page.
This is the same as setting
X or
Y.
// Move an object left
ImageEnView1.PdfViewer.Objects.Translate( -10, 0 );
// Which is the same as...
obj := ImageEnView1.PdfViewer.Objects[idx];
obj.X := obj.X - 10;
// Move an object right
ImageEnView1.PdfViewer.Objects.Translate( 10, 0 );
// Which is the same as...
obj := ImageEnView1.PdfViewer.Objects[idx];
obj.X := obj.X + 10;
// Move an object up
ImageEnView1.PdfViewer.Objects.Translate( 0, 10 ); // Note: PDF documents are bottom-up
// Which is the same as...
obj := ImageEnView1.PdfViewer.Objects[idx];
// Note: PDF documents are bottom-up
obj.Y := obj.Y + 10;
// Move an object down
ImageEnView1.PdfViewer.Objects.Translate( 0, -10 ); // Note: PDF documents are bottom-up
// Which is the same as...
obj := ImageEnView1.PdfViewer.Objects[idx];
// Note: PDF documents are bottom-up
obj.Y := obj.Y - 10;
See Also
◼X
◼Y
◼Width
◼Height
◼Matrix
◼Scale
◼TransformEx