[Properties (by Name)] [Methods (by Name)]
List of images of the same size (size), used for glyphs, icons and frame images
Source position: msebitmap.pas line 423
type timagelist = class(tmsecomponent) |
||
public |
||
constructor create(); override; |
||
destructor destroy; override; |
||
procedure beginupdate; |
|
Stops (beginupdate) or resumes |
procedure endupdate; |
||
procedure clear; |
||
procedure deleteimage(); |
||
procedure moveimage(); |
||
procedure setimage(); |
||
procedure getimage(); |
||
function addimage(); |
||
procedure clipcornermask(); |
||
procedure paint(); |
||
procedure paintlookup(); |
||
function lookup(); |
||
procedure assign(); override; |
||
property bitmap: tmaskedbitmap; [r] |
||
property bitmaps []: tmaskedbitmap; [r] |
||
property kind: bitmapkindty; [rw] |
||
property maskkind: bitmapkindty; [rw] |
||
property masked: Boolean; [rw] |
||
property graymask: Boolean; [rw] |
||
property colormask: Boolean; [rw] |
|
Must be set to True before adding images if masking should be color-based (as opposed to gray-based) for the images added afterwards |
property hascornermask: Boolean; [r] |
||
published |
||
property versioncount: int32; [rw] |
||
property versiondefault: int32; [rw] |
||
property width: Integer; [rw] |
||
property height: Integer; [rw] |
||
property options: bitmapoptionsty; [rw] |
||
property transparentcolor: colorty; [rw] |
|
A single transparent color for the whole image list (often cl_magenta for standard icons) |
property count: Integer; [rw] |
||
property indexlookup: msestring; [rw] |
||
property cornermask_topleft: msestring; [rw] |
||
property cornermask_bottomleft: msestring; [rw] |
||
property cornermask_bottomright: msestring; [rw] |
||
property cornermask_topright: msestring; [rw] |
||
property onchange: notifyeventty; [rw] |
||
end; |
|
List of images of the same size (size), used for glyphs, icons and frame images |
|
| | | ||
|
Extends the FPC tcomponent with object linking facilities and the like; base of every MSEgui component |
|
| | | ||
tcomponent,ievent,iificommand,iificlient |
||
| | | ||
| | | ||
TObject |
List of images of the same size (size), used for glyphs, icons and frame images.
All images are stored side by side in one large, as square as possible pixmap, bitmap; the paint procedures copy the area of the requested index onto the canvas. To get a single image as a tmaskedbitmap, call getimage; to replace one, call setimage. Accessing bitmap or bitmaps[n] directly gives the whole pixmap, not an individual image.
Several versions of the images can be held by setting versioncount to more than 1, e.g. for different states. The aversion parameters select the version (-1 = versiondefault), and bitmaps[n] is the pixmap of version n (bitmaps[0] = bitmap).