Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Transparency? Change Magic Pink(255, 0, 255) to transparent when blitting?

807601Jan 9 2008 — edited Jan 10 2008
Hi there. :)

I've successfully loaded a bunch of images into Image objects in my HelloWorld applet; my next problem is getting that magic pink background to not show up.

I looked through the methods in Java2D, and can't seem to find any that do what I want? Is there a setPixel() or getPixel() method that I'm missing? I just need to check if a pixel is pink, and then change the alpha from 1 to 0, I think.

But if I can't check the pixel colour, I'm not sure how I do that. I looked for a replaceColour() method, but couldn't seem to find one of those either.

Thanks. :D

-Kramy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 7 2008
Added on Jan 9 2008
4 comments
231 views