MiniGUI API Reference (MiniGUI-Threads)  v5.0.6
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 11024 of file gdi.h.

Field Documentation

◆ alpha

Uint8 alpha

The alpha channel value.

Definition at line 11061 of file gdi.h.

◆ bits

BYTE* bits

The pointer to the bits of the bitmap.

Definition at line 11076 of file gdi.h.

◆ depth

Uint8 depth

The pixel depth.

Definition at line 11059 of file gdi.h.

◆ flags

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 11055 of file gdi.h.

◆ frames

int frames

The number of the frames.

Definition at line 11057 of file gdi.h.

◆ h

Uint32 h

The height of the bitmap.

Definition at line 11069 of file gdi.h.

◆ pitch

Uint32 pitch

The pitch of the bitmap.

Definition at line 11071 of file gdi.h.

◆ size

Uint32 size

The size of the bits of the bitmap.

Definition at line 11073 of file gdi.h.

◆ transparent

Uint32 transparent

The transparent pixel.

Definition at line 11064 of file gdi.h.

◆ w

Uint32 w

The width of the bitmap.

Definition at line 11067 of file gdi.h.


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