*
The moose likes GWT and the fly likes Making a color transparent in an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Making a color transparent in an image" Watch "Making a color transparent in an image" New topic
Author

Making a color transparent in an image

MindBlowing Code
Greenhorn

Joined: Apr 26, 2012
Posts: 1
I'm going to start off with my problem as making the image background transparent is the best solution I've come up with.

I have a large image that when saved as a PNG (so that I may have a transparent background) is ~1.3mb. Saved as a JPG it is around 300kb.

Obviously what I'm trying to do is to get a transparent background while also having a quick download.

My best solution to this was to set the background color to something specific then run the image through a filter and change the color to alpha 100%. This may take even longer than downloading the 1.3mb image itself with most high speed connections these days.

So far I can not figure out how to do this in GWT. I have passively searched for a solution for about a week. I can't seem to get from point A to point B with this problem.

I am open to alternative solutions to the problem or assistance with turning a specific color in an image transparent.

Thank you for your time. :-)
 
Don't get me started about those stupid light bulbs.
 
subject: Making a color transparent in an image
 
Similar Threads
JTextArea image
Is this even possible in Java? Overlaying multiple images with alpha channels
SWT Composite setBackgroundImage() doesn't support transparency?
Image as Transparent to be placed in the JFrame
Images on top of each other