Skip to content

Commit

Permalink
Fix box blur
Browse files Browse the repository at this point in the history
  • Loading branch information
cerus committed Mar 21, 2022
1 parent 745014d commit 6568883
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ private int[] average(final int... colors) {
private int mapToRgb(final byte color) {
if (color >= 0 && color <= 3) {
if (this.transparencyHandling == TransparencyHandling.TREAT_AS_WHITE) {
return new Color(255, 255, 255).getRGB();
return new Color(255, 255, 255, 0).getRGB();
} else if (this.transparencyHandling == TransparencyHandling.TREAT_AS_BLACK) {
return new Color(0, 0, 0).getRGB();
return new Color(0, 0, 0, 0).getRGB();
} else if (this.transparencyHandling == TransparencyHandling.IGNORE) {
return -1;
} else if (this.transparencyHandling == TransparencyHandling.KEEP_ORIGINAL) {
Expand Down

0 comments on commit 6568883

Please sign in to comment.