image util: simplify fillImage alpha check

This commit is contained in:
Adam
2021-01-24 11:49:55 -05:00
committed by Adam
parent 8541ce6667
commit 46434c304c

View File

@@ -395,8 +395,9 @@ public class ImageUtil
{
for (int y = 0; y < filledImage.getHeight(); y++)
{
final Color pixelColor = new Color(image.getRGB(x, y), true);
if (pixelColor.getAlpha() == 0)
int pixel = image.getRGB(x, y);
int a = pixel >>> 24;
if (a == 0)
{
continue;
}