4 This page describes RGB tripplet to pixels conversions.
7 -------------------------------------------------------------------------------
10 #include <core/GP_Convert.h>
12 gp_pixel gp_rgb_to_pixel(uint8_t r, uint8_t g, uint8_t b, gp_pixel_type type);
14 gp_pixel gp_rgba_to_pixel(uint8_t r, uint8_t g, uint8_t b, uint8_t a,
17 gp_pixel gp_rgb_to_pixmap_pixel(uint8_t r, uint8_t g, uint8_t b,
18 const gp_pixmap *pixmap);
20 gp_pixel gp_rgba_to_pixmap_pixel(uint8_t r, uint8_t g, uint8_t b, uint8_t a,
21 const gp_pixmap *pixmap);
22 -------------------------------------------------------------------------------
24 Simple functions to convert RGB or RGBA 8 bit values into the specific
25 link:pixels.html[pixel types].
28 -------------------------------------------------------------------------------
31 #include <core/GP_Convert.h>
33 gp_pixel gp_convert_pixel(gp_pixel pixel, gp_pixel_type from, gp_pixel_type to);
34 -------------------------------------------------------------------------------
36 Converts pixel value. The conversion currently converts by converting the
37 value to RGBA8888 and then to the resulting value.