LiZunYuan / networkpx

Automatically exported from code.google.com/p/networkpx
0 stars 0 forks source link

Fringes! Fringes! Color Fringes! #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Construct a flexible image using GUImageCreateWithCaps
2. Sometimes color fringes will appear.

What is the expected output? What do you see instead?

No color fringes should appear.

Please use labels and text to provide additional information.

I have tried disabling anti-aliasing and lower the interpolation quality
but both does not help. I can't deliver a product with such a bad rendering
result.

Original issue reported on code.google.com by kennytm@gmail.com on 8 Feb 2009 at 8:35

Attachments:

GoogleCodeExporter commented 8 years ago
Changing KeyCaps size does not change the outcome. 

Original comment by kennytm@gmail.com on 8 Feb 2009 at 9:16

GoogleCodeExporter commented 8 years ago
OK, I really don't know what happened. I've subtracted 1 from 
the width and the fringe problem magically gone away (“Step 2: 
a miracle happens”). This has happened in issue 2 before 
already @_@. 

I'll need to confirm it later. 

Original comment by kennytm@gmail.com on 9 Feb 2009 at 3:32

GoogleCodeExporter commented 8 years ago
I observe no more fringes. Will re-open when I found one.

Original comment by kennytm@gmail.com on 10 Feb 2009 at 11:41

GoogleCodeExporter commented 8 years ago
Update: The actual cause seems to be using kCGImageAlphaPremultipliedFirst 
instead of
kCGImageAlphaPremultipliedLast. So we're forced to use RGBA because you've 
crippled
ARGB? That's a nice move, Apple!

Original comment by kennytm@gmail.com on 12 Feb 2009 at 5:13