Brixomatic commented on a change in pull request #114:
URL: https://github.com/apache/commons-imaging/pull/114#discussion_r548922724
##########
File path: src/main/java/org/apache/commons/imaging/color/ColorConversions.java
##########
@@ -643,28 +602,30 @@ private static int convertRGBtoRGB(int red, int green,
int blue) {
return rgb;
}
+ private static int convertRGBtoRGB(final Color color) {
+ return color.getRGB() | 0xff << 24; // alpha channel always opaque
+ }
Review comment:
Adding the direct use of java.awt.Color.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]