ImageEn, unit iegdiplus

TIECanvas.MoveTo

TIECanvas.MoveTo


Declaration

procedure MoveTo(X, Y: integer);


Description

Move the pen position to start a draw operation (use before LineTo).

Note: Same as setting PenPos


Example

// Draw an envelope with 50% transparency
with ImageEnView1.IEBitmap.IECanvas do
begin
  Pen.Mode  := pmCopy;
  Pen.Style := psSolid;
  Pen.Color := clBlack;
  Pen.Transparency := 128;

  Brush.Color := clYellow;
  Brush.Style := bsSolid;
  Brush.Transparency := 128;

  // Draw outer rect
  Rectangle( 100, 100, 500, 300 );

  // Draw flap
  MoveTo( 100, 100 );
  LineTo( 300, 200 );
  LineTo( 500, 100 );
end;
ImageEnView1.Update();