- Offizieller Beitrag
The WPImageList is a component to hold various bitmaps in variants to be used at different resolutions. The most important advantage of a WPImageList ist the transparancy control. While a standard ImageList used to only know black and white masks, the WPImageList works with PNG files and alpha channels.
With WPImageList you have partly transparent gylphs also in Delphi 7
- you only need PNG support (by adding ImageEn, PNGlib or GraphicEx) - see file WPINC.INC.
A) Use bitmaps from TWPImageList in TImageList
The WPImageList can also populate a standard TImageList. To do so assign the property LinkedImageList and call UpdateLinkedList in code or in the designer in the context menu.
You can also call FillImageList(destinationlist) in code to fill any image list.
B) Use TWPImageList as TImageList
Starting with Delphi 10.3 it is possible to inherit a new image list of the standard TImageList. We adapted this technology and make it possible to use a WPImageList also for standard menu items, buttons and actions.
This option is activated by the $DEFINE WPCUSTOMIMG in unit wputil.pas.
How to create images for WPImageList:
To create bitmaps to be used with the TWPOImageList we recommend to use Affinity Designer (“Serif” and “Affinity” are both registered trademarks of Serif Europe Ltd)
Do you have questions or comments?