GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A pixel value conversions. More...
#include <core/gp_pixmap.h>
#include <core/gp_pixel.h>
#include <core/gp_convert.gen.h>
#include <core/gp_convert_scale.gen.h>
Go to the source code of this file.
Functions | |
static gp_pixel | gp_rgb_to_pixel (uint8_t r, uint8_t g, uint8_t b, gp_pixel_type type) |
Converts a color specified by its R, G, B components to a specified type. | |
static gp_pixel | gp_rgba_to_pixel (uint8_t r, uint8_t g, uint8_t b, uint8_t a, gp_pixel_type type) |
Converts a color specified by its R, G, B, A components to a specified type. | |
A pixel value conversions.
Definition in file gp_convert.h.
|
inlinestatic |
Converts a color specified by its R, G, B components to a specified type.
r | A red channel value. |
g | A green channel value. |
b | A blue channel value. |
type | A pixel type for the resulting pixel value. |
Definition at line 30 of file gp_convert.h.
References gp_RGB888_to_pixel().
|
inlinestatic |
Converts a color specified by its R, G, B, A components to a specified type.
r | A red channel value. |
g | A green channel value. |
b | A blue channel value. |
a | An alpha channel value. |
type | A pixel type for the resulting pixel value. |
Definition at line 48 of file gp_convert.h.
References gp_RGBA8888_to_pixel().