property Picture: TPicture
Description
TPicture contains a bitmap, icon or metafile graphic. If the TPicture contains a bitmap graphic, the Bitmap property specifies the graphic. If the TPicture contains an icon graphic, the Icon property specifies the graphic. If the TPicture contains a metafile graphic, the Metafile property specifies the graphic.
Methods and properties |
Description |
procedure Assign (Source: TPersistent) |
Copies one object to another by copying the contents of that object to the other. Example: Form1.Image2.Picture.Assign(Form1.Image1.Picture); |
property Bitmap: TBitmap |
Specifies the contents of the picture object as a bitmap graphic (.BMP file format). |
property Bitmap.Canvas: TCanvas |
Provides access to a drawing surface that represents the bitmap. More info. |
property Graphic: TGraphic |
Specifies the graphic that the picture contains. |
property Height: Integer |
Specifies the vertical size (in pixels) of the graphic. Read only. |
procedure LoadFromFile (const Filename: string) |
Reads the file specified in Filename and loads the data into the TPicture object. Supported formats: bmp, jpg, png, gif, tif, ico, wmf |
procedure SaveToFile (const Filename: string) |
Writes the picture to disk. |
property Width: Integer |
Specifies the horizontal size (in pixels) of the picture. Read only. |