Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Porter Duff Composition Support — Gideros Forum

Porter Duff Composition Support

adiposeadipose Member
edited January 2013 in General questions
Is there any way to do Porter and Duff composition in Gideros? In Android there is a library:

http://developer.android.com/reference/android/graphics/PorterDuffColorFilter.html

This is a very powerful library that allows some pretty cool things. Do we have anything like this in Gideros?

Comments

  • adiposeadipose Member
    edited January 2013
    I found setColorTransform, which can almost do what I want.

    Unfortunately, it is very weak, in that it can only multiply existing values.

    To do what I want, I would first need set all image values to 255, then use setColorTransform accordingly (on a new bitmap). Then I could draw this bitmap on top of the old one. This would emulate the SRC_ATOP function of Porter Duff filters.

    Render to texture could help, here...but just supporting PorterDuff would be much better!
  • atilimatilim Maintainer
    Unfortunately, most of the Porter and Duff composition modes cannot be emulated with OpenGL ES 1.1. Here you only have Sprite:setColorTransform and Sprite:setBlendMode.
Sign In or Register to comment.