4 This page describes RGB tripplet to pixels conversions.
7 -------------------------------------------------------------------------------
10 #include <core/GP_Convert.h>
12 GP_Pixel GP_RGBToPixel(uint8_t r, uint8_t g, uint8_t b, GP_PixelType type);
14 GP_Pixel GP_RGBAToPixel(uint8_t r, uint8_t g, uint8_t b, uint8_t a,
17 GP_Pixel GP_RGBToPixmapPixel(uint8_t r, uint8_t g, uint8_t b,
18 const GP_Pixmap *pixmap);
20 GP_Pixel GP_RGBAToPixmapPixel(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_ConvertPixel(GP_Pixel pixel, GP_PixelType from, GP_PixelType to);
34 -------------------------------------------------------------------------------
36 Converts pixel value. The conversion currently converts by converting the
37 value to RGBA8888 and then to the resulting value.