Photon microGUI widgets library 0.6.0
PhWidgets::Drawing::DirectImageType Struct Reference

Provides a collection of direct image types for use by a Photon microGUI application. More...

#include <Image.h>

Inheritance diagram for PhWidgets::Drawing::DirectImageType:
PhWidgets::Drawing::ImageType

Public Types

Properties

Colors::eColors Collection of standard colors for use by a Photon microGUI application

enum  eDirectImageType {
  ImageDirect1555 , ImageDirect4444 , ImageDirect444 , ImageDirect565 ,
  ImageDirect8888 , ImageDirect888
}
 

Detailed Description

Provides a collection of direct image types for use by a Photon microGUI application.

See also

Member Enumeration Documentation

◆ eDirectImageType

Enumerator
ImageDirect1555 

This format has, for each pixel, one bit of alpha, and 5 bits each of red, green, and blue.

ImageDirect4444 

This format has 4 bits of alpha, and 4 bits each of red, green, and blue.

ImageDirect444 

This format requires 2 bytes per pixel. It matches the high-speed color lookup tables used by palette-based graphics drivers and provides the fastest method of drawing direct-color images with palette-based graphics drivers. Here's the bit order: xxxx.RRRR.GGGG.BBBB

ImageDirect565 

This format packs each pixel into 2 bytes and matches the display format of most 16-bit, direct-color, graphics drivers. Here's the bit order: RRRR.RGGG.GGGB.BBBB

ImageDirect8888 

This format is an array of 4-byte color entries. The least significant byte is the blue component, after that there is the green component, following that there is the red component and the most significant byte is reserved.

ImageDirect888 

This format packs each pixel into 3 bytes. Using this format, you can represent a full 24 bit color image. Here's the bit order: RRRR.RRRR.GGGG.GGGG.BBBB.BBBB


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