Member attributes: ModeOfBitmapResources

This attribute controls the conversion of bitmap resources when generating code for a particular profile member. Please note, before the version 9.30 this attribute was named FormatOfBitmapResources.

Syntax

Compressed

DirectAccess

Discussion

The attribute ModeOfBitmapResources determines the mode how bitmap resources are stored in the code segment (ROM or flash memory) in the target device. Accordingly it affects the memory allocation and the resource management in Embedded Wizard Graphics Engine. The attribute can assume one of the following values:

Value

Description

Compressed

The bitmap pixel information is stored in compressed format. This mode requires the pixel information to be decompressed when the bitmap is used at the runtime. The decompressed bitmaps are maintained in bitmap cache occupying additional RAM. On the other hand, compressed bitmaps have less impact on the code segment size (the application requires less ROM or flash memory). This is the default mode.

DirectAccess

The bitmap pixel information is stored uncompressed in the native color format of the target system. In this manner the pixel information can be accessed directly in the code segment (ROM or flash memory) without an intermediate decompression step into a bitmap cache RAM. This mode requires the color format of the target system to be specified in the attributes ColorChannelsOrder and ColorPremultipliedAlpha.

TIP

With the attribute ModeOfBitmapResources you determine the global mode affecting per default all bitmap resources. This setting can be overridden for each bitmap resource individually by using its attribute Mode.

Modify the attribute

To inspect or modify the value of a ModeOfBitmapResources attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the 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.