Skip to content

Commit c86439d

Browse files
committed
SwingColorAlphaWidget: Fix icon displaying ARGB
1 parent ba78d0b commit c86439d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/ui/swing/widget/SwingColorAlphaWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public void doRefresh() {
216216
color = AWTColors.getColor(value);
217217

218218
final BufferedImage image =
219-
new BufferedImage(SWATCH_WIDTH, SWATCH_HEIGHT, BufferedImage.TYPE_INT_RGB);
219+
new BufferedImage(SWATCH_WIDTH, SWATCH_HEIGHT, BufferedImage.TYPE_INT_ARGB);
220220
final Graphics g = image.getGraphics();
221221
g.setColor(color);
222222
g.fillRect(0, 0, image.getWidth(), image.getHeight());

0 commit comments

Comments
 (0)