Platform Package reference: Type XBitmap

Description of the type definition XBitmap available in all Platform Packages for C compatible target systems. This type definition is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

typedef struct

  XInt32   Format;

  XPoint   FrameSize;

  XInt32   FrameDelay;

  XInt32   NoOfFrames;

} XBitmap;

Elements

Format

Pixel format of the bitmap. Possible values are: EW_PIXEL_FORMAT_NATIVE, EW_PIXEL_FORMAT_ALPHA8, EW_PIXEL_FORMAT_INDEX8 and EW_PIXEL_FORMAT_RGB565. For more details see EwCreateBitmap().

FrameSize

Size of a single frame within the bitmap.

FrameDelay

Delay in milliseconds for animated bitmaps. If no animation is specified for the bitmap, contains the value == 0.

NoOfFrames

Number of frames, this bitmap consists of. The value is >= 1

Discussion

The structure XBitmap describes the attributes of a bitmap. Please don't modify the content of this structure. Bitmaps are created by using the function EwCreateBitmap().