Draws a rectangle on the canvas.
Implements drawing a rectangle using the pen and filling it with the current brush.
To fill a rectangular region without drawing the boundary in the current pen, use FillRect. To outline a rectangular region without filling it, use FrameRect or Polygon. To draw a rectangle with rounded corners, use RoundRect.
Namespace: RSGdiPlusGraphics
Delphi
|
public
procedure Rectangle(X1, Y1, X2, Y2: Integer); override;
|
Parameters
X1
Type: Integer
Y1
Type: Integer
X2
Type: Integer
Y2
Type: Integer
Reference
•RSGdiPlusGraphics.TRSGPCanvas.FillRect(TRectF,Single,Single,TRSGPCorners,Single,TRSGPBrush,TRSGPCornerType) •RSGdiPlusGraphics.TRSGPCanvas.FrameRect(TRect) •RSGdiPlusGraphics.TRSGPCanvas.Polygon(TPoint[]) •RSGdiPlusGraphics.TRSGPCanvas.RoundRect(Integer,Integer,Integer,Integer,Integer,Integer) •RSGdiPlusGraphics.TRSGPCanvas.DrawRect(TRectF,Single,Single,TRSGPCorners,Single,TRSGPPen,TRSGPCornerType) •RSGdiPlusGraphics.TRSGPCanvas.Pen •RSGdiPlusGraphics.TRSGPCanvas.Brush •TRSGPCanvas •RSGdiPlusGraphics |