tags:

views:

10

answers:

0

Hello,

I'm trying to draw a 32-bit premultiplied PNG UIImage on top of a previously drawn background using color-dodge blend mode. The PNG image contains a small opaque white rectangle with anti-aliased edges that fade into transparency, so there are semi-transparent pixels. For some reason color-dodge seem to treat the semi-transparent areas as if they were actually blocked and I get a full white rectangle with jagged edges. Unless I missed something, this is not what I expected based on what I read. Does anyone know what is special about color-dodge and color-burn modes?

Thank you