hupeng1991 / java-image-scaling

Automatically exported from code.google.com/p/java-image-scaling
Other
0 stars 0 forks source link

Rescaling with alpha #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I want to rescale icon with rounded corners (with alpha chanel). This 
rescaled image will be placed on some bacground with the same color as image 
(sse screen shots). Problem is that after rescaling I can see some corners. How 
to avoid it?

What is the expected output? What do you see instead?
I want to see rescaled image with rounded corners with constant color.

What version of the product are you using? On what operating system?
Latest jar. Windows 7.

Original issue reported on code.google.com by Paul.But...@gmail.com on 4 May 2011 at 1:24

Attachments:

GoogleCodeExporter commented 8 years ago
This is not a trivial problem to fix. The root of this problem is that the 
alpha channel is not related to the color channels. They are scaled 
independently. This means that colors transperent pixels actually influences 
the final image.

One solution could be to ignore fully transperent pictures, but this will only 
solve the problem in some cases.

Original comment by m%nobel-...@gtempaccount.com on 21 Jun 2011 at 8:34