This content has been marked as final. Show 2 replies
Some files come ARGB and some come RGBA. If I make it, I use ARGB or if it comes ARGB I leave it as ARGB. If it comes RGBA then I manipulate it as an RGBA, I don't convert it. It may come down to the environment you code for, does your destination graphics support ARGB or RGBA?1 person found this helpful
Sorry I misunderstand the constructor.
Now after I do read the javadoc of DirectColorModel it becomes clear.
The alpha bits are the last argument.
So the code did not change the direction as I suggested.
Thanks for your hint. I read something about the color spaces in the book.
From the SwingX-library there comes a usefull class named GraphicsUtilties where you can create
a system-graphic-device-compatible image, not wondering about what type this is.