MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Fields
_BITMAP Struct Reference

#include <gdi.h>

Data Fields

Uint8 bmType
 
Uint8 bmBitsPerPixel
 
Uint8 bmBytesPerPixel
 
Uint8 bmAlpha
 
Uint32 bmColorKey
 
Uint32 bmColorRep
 
Uint32 bmWidth
 
Uint32 bmHeight
 
Uint32 bmPitch
 
Uint8bmBits
 
Uint8bmAlphaMask
 
Uint32 bmAlphaPitch
 

Detailed Description

Expanded device-dependent bitmap structure.

Definition at line 11088 of file gdi.h.

Field Documentation

◆ bmAlpha

Uint8 bmAlpha

The alpha channel value.

Definition at line 11128 of file gdi.h.

◆ bmAlphaMask

Uint8* bmAlphaMask

The Alpha mask of the bitmap

Definition at line 11148 of file gdi.h.

◆ bmAlphaPitch

Uint32 bmAlphaPitch

The pitch of the Alpha mask

Definition at line 11151 of file gdi.h.

◆ bmBits

Uint8* bmBits

The bits of the bitmap

Definition at line 11141 of file gdi.h.

◆ bmBitsPerPixel

Uint8 bmBitsPerPixel

The bits per piexel.

Definition at line 11124 of file gdi.h.

◆ bmBytesPerPixel

Uint8 bmBytesPerPixel

The bytes per piexel.

Definition at line 11126 of file gdi.h.

◆ bmColorKey

Uint32 bmColorKey

The color key value.

Definition at line 11130 of file gdi.h.

◆ bmColorRep

Uint32 bmColorRep

The pixel value used to replace the color key.

Definition at line 11132 of file gdi.h.

◆ bmHeight

Uint32 bmHeight

The height of the bitmap

Definition at line 11137 of file gdi.h.

◆ bmPitch

Uint32 bmPitch

The pitch of the bitmap

Definition at line 11139 of file gdi.h.

◆ bmType

Uint8 bmType

Bitmap types, can be OR'ed by the following values:

  • BMP_TYPE_NORMAL
    A nomal bitmap, without alpha and color key.
  • BMP_TYPE_RLE
    A RLE (run-length-encode) encoded bitmap. The encoding translates the pixel data to a stream of segments of the form

    <skip> <run> <data>

    where <skip> is the number of transparent pixels to skip, <run> is the number of opaque pixels to blit, and <data> are the pixels themselves.

    Encoded pixels always have the same format as the BITMAP. <skip> and <run> are unsigned 8 bit integers, except for 32 bit depth where they are 16 bit. This makes the pixel data aligned at all times. Segments never wrap around from one scan line to the next. The end of one segment is marked by a zero <skip>,<run> pair.

  • BMP_TYPE_ALPHA
    Per-pixel alpha in the bitmap.
  • BMP_TYPE_ALPHACHANNEL
    The bmAlpha is a valid alpha channel value.
  • BMP_TYPE_COLORKEY
    The bmColorKey is a valid color key value.
  • BMP_TYPE_ALPHA_MASK
    The bmAlphaMask and bmAlphaPitch are valid.
  • BMP_TYPE_REPLACEKEY
    The bmColorRep is valid. Any pixel which is equal to bmColorKey will be replaced by bmColorRep.

Definition at line 11122 of file gdi.h.

◆ bmWidth

Uint32 bmWidth

The width of the bitmap

Definition at line 11135 of file gdi.h.


The documentation for this struct was generated from the following file: