pntr
Image manipulation library
pntr_color::pntr_color_rgba_t Struct Reference

Data Fields

unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Detailed Description

Union data representing the 32-bit integer, split into four bytes.

The order in which the values are sorted depends on which pixel format you're using.

See also
PNTR_PIXELFORMAT_RGBA
PNTR_PIXELFORMAT_ARGB

Field Documentation

◆ a

unsigned char pntr_color::pntr_color_rgba_t::a

Alpha channel.

◆ b

unsigned char pntr_color::pntr_color_rgba_t::b

Blue channel.

◆ g

unsigned char pntr_color::pntr_color_rgba_t::g

Green channel.

◆ r

unsigned char pntr_color::pntr_color_rgba_t::r

Red channel.