WARNING: RENAMED: ImageExtractPalette() -> GetImagePalette()
This commit is contained in:
parent
cb3bdf09c6
commit
7a1d3d807f
2 changed files with 3 additions and 3 deletions
|
@ -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 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 *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 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
|
RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
|
||||||
|
|
||||||
|
|
|
@ -1957,9 +1957,9 @@ Color *GetImageData(Image image)
|
||||||
return pixels;
|
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!
|
// 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))
|
#define COLOR_EQUAL(col1, col2) ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue