Member attributes: Mode

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

Syntax

Compressed

DirectAccess

Default

Discussion

The attribute Mode determines the format how the bitmap resource is 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).

DirectAccess

The bitmap pixel information is stored uncompressed in the color format specified in the bitmap's attribute Format. 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.

Default

The mode is determined globally by the attribute ModeOfBitmapResources of the selected profile.

Modify the attribute

To inspect or modify the value of a Mode attribute, select first the affected bitmap resource 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:

Localization

The attribute Mode can be localized allowing the creation of bitmap resource members with language dependent conversion modes. For this purpose expand the attribute by clicking on the small triangle left to the attribute. All available language specific values are listed thereupon below the attribute and can be modified individually:

If you haven't specified any mode for a particular language specific value, the mode from the fallback language Default is used automatically. Once localized values can be removed easily by pressing the keys CtrlR when the affected value is selected.