Added new function: ImageAlphaCrop()

This commit is contained in:
Ray
2018-01-11 10:22:32 +01:00
parent c37d2d448d
commit 278d8575bd
2 changed files with 48 additions and 0 deletions

View File

@@ -881,6 +881,7 @@ RLAPI void ImageToPOT(Image *image, Color fillColor);
RLAPI void ImageFormat(Image *image, int newFormat); // Convert image data to desired format
RLAPI void ImageAlphaMask(Image *image, Image alphaMask); // Apply alpha mask to image
RLAPI void ImageAlphaClear(Image *image, Color color, float threshold); // Clear alpha channel to desired color
RLAPI void ImageAlphaCrop(Image *image, float threshold); // Crop image depending on alpha value
RLAPI void ImageAlphaPremultiply(Image *image); // Premultiply alpha channel
RLAPI void ImageCrop(Image *image, Rectangle crop); // Crop an image to a defined rectangle
RLAPI void ImageResize(Image *image, int newWidth, int newHeight); // Resize and image (bilinear filtering)