MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Fields
_MYBITMAP Struct Reference

#include <gdi.h>

Data Fields

DWORD flags
 
int frames
 
Uint8 depth
 
Uint8 alpha
 
Uint32 transparent
 
Uint32 w
 
Uint32 h
 
Uint32 pitch
 
Uint32 size
 
BYTEbits
 

Detailed Description

Device-independent bitmap structure.

Definition at line 7313 of file gdi.h.

Field Documentation

Uint8 alpha

The alpha channel value.

Definition at line 7350 of file gdi.h.

BYTE* bits

The pointer to the bits of the bitmap.

Definition at line 7365 of file gdi.h.

Uint8 depth

The pixel depth.

Definition at line 7348 of file gdi.h.

DWORD flags

Flags of the bitmap, can be OR'ed by the following values:

  • MYBMP_TYPE_NORMAL
    A normal palette bitmap.
  • MYBMP_TYPE_RGB
    A RGB bitmap.
  • MYBMP_TYPE_BGR
    A BGR bitmap.
  • MYBMP_TYPE_RGBA
    A RGBA bitmap.
  • MYBMP_FLOW_DOWN
    The scanline flows from top to bottom.
  • MYBMP_FLOW_UP
    The scanline flows from bottom to top.
  • MYBMP_TRANSPARENT
    Have a trasparent value.
  • MYBMP_ALPHACHANNEL
    Have a alpha channel.
  • MYBMP_ALPHA
    Have a per-pixel alpha value.
  • MYBMP_RGBSIZE_3
    Size of each RGB triple is 3 bytes.
  • MYBMP_RGBSIZE_4
    Size of each RGB triple is 4 bytes.
  • MYBMP_LOAD_GRAYSCALE
    Tell bitmap loader to load a grayscale bitmap.
  • MYBMP_LOAD_ALLOCATE_ONE
    Tell bitmap loader to allocate space for only one scanline.

Definition at line 7344 of file gdi.h.

int frames

The number of the frames.

Definition at line 7346 of file gdi.h.

Uint32 h

The height of the bitmap.

Definition at line 7358 of file gdi.h.

Uint32 pitch

The pitch of the bitmap.

Definition at line 7360 of file gdi.h.

Uint32 size

The size of the bits of the bitmap.

Definition at line 7362 of file gdi.h.

Uint32 transparent

The transparent pixel.

Definition at line 7353 of file gdi.h.

Uint32 w

The width of the bitmap.

Definition at line 7356 of file gdi.h.


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