roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::Rgb565WithTransparency Class Reference

RGB565 with a reserved value representing transparency. More...

#include <color_modes.h>

Public Member Functions

constexpr Rgb565WithTransparency (uint16_t transparent_background_rgb565)
 
constexpr Color toArgbColor (uint16_t in) const
 
constexpr uint16_t fromArgbColor (Color color) const
 
constexpr TransparencyMode transparency () const
 
uint16_t raw_transparency_color () const
 

Static Public Attributes

static const int8_t bits_per_pixel = 16
 

Detailed Description

RGB565 with a reserved value representing transparency.

Definition at line 225 of file color_modes.h.

Constructor & Destructor Documentation

◆ Rgb565WithTransparency()

constexpr roo_display::Rgb565WithTransparency::Rgb565WithTransparency ( uint16_t  transparent_background_rgb565)
inlineconstexpr

Definition at line 229 of file color_modes.h.

Member Function Documentation

◆ fromArgbColor()

constexpr uint16_t roo_display::Rgb565WithTransparency::fromArgbColor ( Color  color) const
inlineconstexpr

◆ raw_transparency_color()

uint16_t roo_display::Rgb565WithTransparency::raw_transparency_color ( ) const
inline

◆ toArgbColor()

constexpr Color roo_display::Rgb565WithTransparency::toArgbColor ( uint16_t  in) const
inlineconstexpr

Definition at line 232 of file color_modes.h.

◆ transparency()

constexpr TransparencyMode roo_display::Rgb565WithTransparency::transparency ( ) const
inlineconstexpr

Definition at line 253 of file color_modes.h.

References roo_display::kCrude.

Field Documentation

◆ bits_per_pixel

const int8_t roo_display::Rgb565WithTransparency::bits_per_pixel = 16
static

Definition at line 227 of file color_modes.h.


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