ImageEn, unit iegdiplus

TIECanvas.Translate

TIECanvas.Translate


Declaration

procedure Translate(dx: double; dy: double);


Description

Perform a world translation to offset the canvas content.

Note: Use ResetTransform to reset the transformation

GDI+ Method: GdipTranslateWorldTransform


Example

// Use Translate and Rotate to move and rotate the text output
// Note: Example only. It is easier just to use the DrawText overrides to do this
With IECanvas do
begin
  Translate( 100, 100 );
  Rotate( -45 );
  DrawText( 'This is a test', 0, 0 );
  ResetTransform();
end;