aadarshasubedi / hqx

Automatically exported from code.google.com/p/hqx
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Wrong anti-aliasing on fully transparent edges #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Scale an image that has color and full transparency adjacent on a diagonal 
edges.

Expected output is a gradient from the color to transparent.
Currently, there's a gradient towards the color value of the transparent pixel 
at the same time, wich creates noticeable artifacts when the alpha channel is 
removed later.

Attachment info: 'In' is scaled 800%. 'Out' is HQ4X scaled 400%.

Original issue reported on code.google.com by cabur...@gmail.com on 16 Sep 2012 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
I think the problem is that this does not support alpha channels at all.  To do 
so properly we would need the api to have the ability specify a full "alpha 
label" which includes:

straight / premul / none (none being what is supported now)
if premul: the RGB background color to premul with
optional "inverse" bit (is the alpha "inverted")

Original comment by anbaricf...@gmail.com on 25 Jan 2014 at 8:54