ciembor
ciembor

Reputation: 7337

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.

Upvotes: 1

Views: 2688

Answers (1)

Hovercraft Full Of Eels
Hovercraft Full Of Eels

Reputation: 285405

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

Are you drawing in a BufferedImage?

Upvotes: 4

Related Questions