U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter bug?
Re: Painter bug? [message #31540 is a reply to message #31538] Sat, 12 March 2011 19:17 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I am afraid this is unavoidable problem caused by antialiasing and subpixel accuracy... (and this would appear in most similiar systems. My guess is if you would put something like this to .pdf or .svg, you would get artifact as well).

Think:

At the beggining there is a white color of background - 255,255,255. Now the y is "half" of pixel, so we have to mix the color of polygon with this white with "alpha" 0.5. So if the color is black, there will now be 127, 127, 127 in canvas.

Ok, then paint another polygon, again whe have "half" of pixel, say the color is black, so we again have to apply it with "alpha" 0.5. Result: 64, 64, 64... (but should have been 0,0,0)

So it is a 'feature', not a bug. You have to account for it.

More on this e.g. here (AGG related):

http://thread.gmane.org/gmane.comp.graphics.agg/2359/focus=2 367

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How does CtrlCore Image::Data::PaintImp work?
Next Topic: Loading 16 bits per channel Tiff files
Goto Forum:
  


Current Time: Thu Jul 23 06:05:11 GMT+2 2026

Total time taken to generate the page: 0.02059 seconds