How we can handle transparency when resizing an GIF image in JAVA
- From: manjula <manjula.aw@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 01:14:40 -0700
Hi friends,
I'm working on a image processing program which do resizing JPG, PNG ,
and GIF images.
I did the PNG and JPG image resizing part without any problem.
but when i tried to resize transparent GIF images (animated) i still
have a big problem.
I can resize transparent GIF image but when i resized it , some parts
of the GIF image also become transparent addition to real transparent
ares.
I think the in GIF transparency,
we first apply a back ground color
then draw image on it and set all the pixel of that background color
to transparent.
Then the problem is if the real image also has pixels with the same
background(transparent) color. then they also disappeared due to set
that color transparent.
That's my idea.
Can u give any idea about how to overcome this?
also I need some GIFENcoders, sometimes that may be the problem.
Thank u verymuch.
regards,
Manjula
.
- Follow-Ups:
- Re: How we can handle transparency when resizing an GIF image in JAVA
- From: Roedy Green
- Re: How we can handle transparency when resizing an GIF image in JAVA
- Prev by Date: source code
- Next by Date: Re: Cool ad for SunDeveloper Services
- Previous by thread: Re: RTF in JEditorPane - failure with simple document?
- Next by thread: Re: How we can handle transparency when resizing an GIF image in JAVA
- Index(es):
Relevant Pages
|