Masked Property

Applies To: ImageList

Description

The Masked property specifies whether or not the ImageList will contain opaque or transparent images. It may be 0, 1(the default), 2, or 3.

Masked must be established when the ImageList is created by ⎕WC and may not subsequently be altered. An inappropriate value of Masked will cause the images to be drawn incorrectly.

If Masked is 0, the ImageList expects opaque Bitmap objects.

If Masked is 1, the ImageList expects low-colour (4-bit or 8-bit) Icon objects whose transparency is defined by their Mask property.

If Masked is 2, the ImageList expects Bitmap or Icon objects whose alpha channel (the degree of transparency of each pixel) is encoded in its source file along with the colours.

If Masked is 3 and Native Look and Feel

is enabled, the behaviour is the same as if Masked were 2. If Native Look and Feel is not enabled, it behaves as if Masked were 1. This setting provides the greatest degree of portability for applications whose users may or may not have Native Look and Feel enabled. This value is used for the ImageLists on the Dyalog Session CoolBars.