image util: simplify fillImage alpha check
This commit is contained in:
@@ -395,8 +395,9 @@ public class ImageUtil
|
|||||||
{
|
{
|
||||||
for (int y = 0; y < filledImage.getHeight(); y++)
|
for (int y = 0; y < filledImage.getHeight(); y++)
|
||||||
{
|
{
|
||||||
final Color pixelColor = new Color(image.getRGB(x, y), true);
|
int pixel = image.getRGB(x, y);
|
||||||
if (pixelColor.getAlpha() == 0)
|
int a = pixel >>> 24;
|
||||||
|
if (a == 0)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user