Search code examples
javaswingcolorsrgba

Drawing in Java Swing with RGBA


How can I draw in swing using RGBA (colors with transparency)? The only class I found is Color which is sRGB.


Solution

  • Color will understand alpha and even has constructors that accept it: Color API

    Are you drawing in a BufferedImage?