diff options
| author | Ray <[email protected]> | 2018-10-08 18:57:33 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-08 18:57:33 +0200 |
| commit | 2320c2febf50c76f0bc45b2d24ac455d6d7fbd79 (patch) | |
| tree | 9612b8f02d536c4dad456d59f9e6565a4d2a8da1 /src/raylib.h | |
| parent | 4f5937e89bc0cfddd6c3a36292d3262a9b75de92 (diff) | |
| download | raylib-2320c2febf50c76f0bc45b2d24ac455d6d7fbd79.tar.gz raylib-2320c2febf50c76f0bc45b2d24ac455d6d7fbd79.zip | |
ADDED: ImageExtractPalette()
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 6549ba1d..2bc37906 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1024,6 +1024,7 @@ RLAPI void ImageResizeNN(Image *image, int newWidth,int newHeight); RLAPI void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color color); // Resize canvas and fill with color RLAPI void ImageMipmaps(Image *image); // Generate all mipmap levels for a provided image RLAPI void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); // Dither image data to 16bpp or lower (Floyd-Steinberg dithering) +RLAPI Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount); // Extract color palette from image to maximum size (memory should be freed) RLAPI Image ImageText(const char *text, int fontSize, Color color); // Create an image from text (default font) RLAPI Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint); // Create an image from text (custom sprite font) RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec); // Draw a source image within a destination image |
