ImageEn, unit iexBitmaps

TIEBitmap.IECanvas

TIEBitmap.IECanvas


Declaration


property IECanvas: TIECanvas;


Description


Returns the IECanvas when Location is ieTBitmap.

Note: If you access the IECanvas property the Location is automatically converted to ieTBitmap.

See also: Canvas


Example


// Draw an anti-aliased ellipse onto a TIEBitmap
with iebmp.IECanvas do
begin
  Pen.Style := psSolid;
  Pen.Mode := pmCopy;
  Pen.Color := clRed;
  Brush.Style := bsClear
  Ellipse( Rect( 100, 100, 200, 200 ));
end;

// Highlight an area of an image
mybmp.IECanvas.Brush.Color := clYellow;
mybmp.IECanvas.Brush.Style := bsSolid;
mybmp.IECanvas.Brush.Transparency := 125;
mybmp.IECanvas.FillRect( Rect( 100, 100, 300, 300 );