Declaration
procedure DrawShape(X1, Y1, X2, Y2: Integer; Shape: TIEShape); overload;
procedure DrawShape(const Rect: TRect; Shape: TIEShape); overload;
Description
Draw a
shape within a specified area.
The Shape border is set by
Pen and the fill by
Brush.
GDI+ Methods: GdipFillPolygon, GdipDrawPolygon
// Draw pin at center of image
bmp.IECanvas.Pen.Color := clBlack;
bmp.IECanvas.Pen.Width := 1;
bmp.IECanvas.Brush.Color := clRed;
bmp.IECanvas.DrawShape( bmpOut.Width div 2 - Pin_Size, bmpOut.Height div 2 - Pin_Size, bmpOut.Width div 2 + Pin_Size, bmpOut.Height div 2 + Pin_Size, iesPinLeft );
See Also
◼AdvancedDrawShape
◼IEDrawShape
◼IECreateShapeRegion