Member attributes: ColorChannelsOrder

This attribute controls the color conversion of bitmap resources when generating code for a particular profile member.

Syntax

color‑channel‑name,color‑channel‑name, ...

Discussion

The attribute ColorChannelsOrder determines in which order the target system expects the color channels to be stored within the memory of a pixel beginning with the least significant bit. The setting affects directly the format of how NATIVE bitmap resources are converted and stored in the generated code. However, it has an effect only when the related attribute ModeOfBitmapResources is configured with the value DirectAccess. Otherwise the setting of ColorChannelsOrder is ignored.

Please note, if your application uses Bitmap resources configured with the color format RGB565 you should also edit the attribute ColorChannelsOrderOfRGB565 to specify how those bitmaps are expected to be stored within the memory of your target system.

A valid value for this attribute is composed of color channel names separated by , (comma) signs. Which color channel names are in fact available depends on the variant of the NATIVE color format used in your Platform Package selected in the a particular profile member. Following is an overview of possible color channel names:

Color format

Channel names

Comments and example

RGBA8888

Red

Green

Blue

Alpha

For example: the attribute value Blue,Green,Red,Alpha determines, that the blue color channel is stored in the least significant bits of the pixel memory. Then follow the channels green and red. The alpha color channel, in turn, occupies the most significant bits.

RGBA4444

Red

Green

Blue

Alpha

For example: the attribute value Alpha,Blue,Green,Red determines, that the alpha color channel is stored in the least significant bits of the pixel memory. Then follow the channels blue and green. The red color channel, in turn, occupies the most significant bits.

LumA44

Lum

Alpha

For example: the attribute value Lum,Alpha determines, that the luminance channel is stored in the least significant bits and the alpha channel occupies the most significant bits in the pixel memory.

Modify the attribute

To inspect or modify the value of a ColorChannelsOrder attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available assistant you can activate by clicking on the button right to the attribute:

Please note, the attribute can be hidden if the Platform Package selected in the particular profile member doesn't support the direct-access mode for generated bitmap data (see ModeOfBitmapResources) or the layout of how NATIVE pixel data are stored in the target device is fixed and can't be configured.