Difference between revisions of "TImage"
From Lazarus wiki
Jump to navigationJump to searchm (Add link for transparent property) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TImage}} | {{TImage}} | ||
− | '''TImage''' [[Image:timage.png]] is a component that holds a graphic image placed on a [[TForm|form]]; usually it is loaded from a picture file. It inherits most of its properties from its ancestors, [[doc:lcl/extctrls/tcustomimage.html|TCustomImage]], [[TGraphicControl]] and [[doc:lcl/controls/tcontrol.html|TControl]]. | + | '''TImage''' [[Image:timage.png]] is a component that holds a graphic image placed on a [[TForm|form]]; usually it is loaded from a picture file. It inherits most of its properties from its ancestors, [[doc:lcl/extctrls/tcustomimage.html|TCustomImage]], [[TGraphicControl]] and [[doc:lcl/controls/tcontrol.html|TControl]]. It is one of the few LCL components which supports the [[Transparent]] property by default. |
The Picture [[Property|property]] is used to define the image for the TImage component. | The Picture [[Property|property]] is used to define the image for the TImage component. | ||
Line 8: | Line 8: | ||
Supported image formats are: | Supported image formats are: | ||
+ | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Image format !! [[File extension]] | ! Image format !! [[File extension]] | ||
|- | |- | ||
− | | | + | | Portable Network Graphics || *.png |
|- | |- | ||
| Bitmap || *.bmp | | Bitmap || *.bmp | ||
Line 22: | Line 23: | ||
| Icon || *.ico | | Icon || *.ico | ||
|- | |- | ||
− | | | + | | macOS icon || *.icns |
|- | |- | ||
| Joint Photographic Experts Group || *.jpg *.jpeg | | Joint Photographic Experts Group || *.jpg *.jpeg | ||
Line 38: | Line 39: | ||
* [[TPaintBox]] | * [[TPaintBox]] | ||
* [[TImageList]] | * [[TImageList]] | ||
+ | * [[TBitMap]] | ||
{{LCL Components}} | {{LCL Components}} |
Latest revision as of 02:57, 12 September 2020
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
日本語 (ja) │
русский (ru) │
TImage is a component that holds a graphic image placed on a form; usually it is loaded from a picture file. It inherits most of its properties from its ancestors, TCustomImage, TGraphicControl and TControl. It is one of the few LCL components which supports the Transparent property by default.
The Picture property is used to define the image for the TImage component.
Supported formats
Supported image formats are:
Image format | File extension |
---|---|
Portable Network Graphics | *.png |
Bitmap | *.bmp |
Pixmap | *.xpm |
Cursor | *.cur |
Icon | *.ico |
macOS icon | *.icns |
Joint Photographic Experts Group | *.jpg *.jpeg |
Tagged Image File Format | *.tif *.tiff |
Graphics Interchange Format | *.gif |
Portable PixMap | *.pbm *.pgm *.ppm |
See also