mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 16:28:14 +00:00
WARNING: RENAMED: ImageExtractPalette() -> GetImagePalette()
This commit is contained in:
@@ -1150,7 +1150,7 @@ RLAPI void ImageColorBrightness(Image *image, int brightness);
|
||||
RLAPI void ImageColorReplace(Image *image, Color color, Color replace); // Modify image color: replace color
|
||||
|
||||
RLAPI Color *GetImageData(Image image); // Get pixel data from image as a Color struct array
|
||||
RLAPI Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount); // Extract color palette from image to maximum size (memory should be freed)
|
||||
RLAPI Color *GetImagePalette(Image image, int maxPaletteSize, int *extractCount); // Get color palette from image to maximum size (memory should be freed)
|
||||
RLAPI Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
|
||||
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
|
||||
|
||||
|
@@ -1957,9 +1957,9 @@ Color *GetImageData(Image image)
|
||||
return pixels;
|
||||
}
|
||||
|
||||
// Extract color palette from image to maximum size
|
||||
// Get color palette from image to maximum size
|
||||
// NOTE: Memory allocated should be freed manually!
|
||||
Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount)
|
||||
Color *GetImagePalette(Image image, int maxPaletteSize, int *extractCount)
|
||||
{
|
||||
#define COLOR_EQUAL(col1, col2) ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))
|
||||
|
||||
|
Reference in New Issue
Block a user