TImage ( Additional) , .
Picture | . : Procedure LoadFromFile(<>) Procedure SaveToFile(<>) |
AutoSize: Boolean | / |
Align | : alNone ; alBottom ; alLeft ; alRight ; alTop ; alClient ; alCustom - |
Center: Boolean | . True, . AutoSize=True Stretch=True, , . |
IncrementalDisplay: Boolean | / . |
Stretch: Boolean | / , .. . AutoSize=True |
TShape( Additional) .
Shape | : StRectangle StSquare StRoundRect StRoundSquare StEllipse StCircle |
Pen | |
Brush | . |
TPaintBox ( System) . Font, Pen, Brush, Canvas.
Delphi
, . . , , , , .
Pixels. , , : Canvas.Pixels[5,5]:=clRed
(Canvas.Pen)
, .
Color
Width
Mode :
pmBlack
pmWhite
pmNop
pmNot
pmCopy Color
Style -
psSolid
psDash
psDot
psDashDot -
psDashDotDot
psClear
(Canvas.Brush)
,
Color
Style
bsSolid | bsBDiagonal | bsFDiagonal | bsCross | bsDiagCross | bsHorizontal | bsVertical |
BitMap , . , bmp-.
|
|
Canvas
MoveTo (X,Y) - (X,Y)
LineTo (X,Y) (X,Y)
Rectangle (X1,Y1,X2,Y2) . .
FrameRect (rect:TRect) Trect. TRect , Left, Top, Right, Bottom .
Polygon (P:array of TPoint) , P. TPoint X,Y
Polyline (P:array of TPoint) , , P.
Ellipse (X1,Y1, X2,Y2) . , .
Arc (X1,Y1, X2,Y2, X3,Y3,X4,Y4) , (X3,Y3) (X4,Y4). . , (X3,Y3) (X4,Y4) .
Pie (X1,Y1, X2,Y2, X3,Y3,X4,Y4) .
Chord (X1,Y1, X2,Y2, X3,Y3,X4,Y4) .
FloodFill (X,Y, Color, FillStyle) , (X,Y). : fsSurface Color, fsBorder Color.
TextOut (X,Y,Text) Text , , , (X,Y).
TextHeight (Text) , .
TextWidth (Text) , .