Trying to get the dissolve transition filter in core image to work

Discussion in 'Mac Programming' started by Cbswe, Jan 20, 2010.

  1. Cbswe macrumors member

    Joined:
    Jan 11, 2010
    #1
    I've been trying for days to get a simple dissolve transition filter to work but
    I've just not been able to get it to work.

    Here is the walk method that is called when the transition should occur
    and the overridden drawRect method:

    the objects current and buffer are both a of a subclass of NSView and
    I've checked that initialImage respectively finalImage are indeed correctly
    created and looks as they should.
    What happens when I execute the walk method is nothing. When I debug
    it I see that the drawRect is called once during the startAnimation call.

    I've also tried several variants of how the drawRect method draws the
    context without progress.

    Don't bother to suspect stuff like ClearBitmapImageRep() and prepareFrameBuffer because as I stated I really made sure that the
    initialImage & finalImage are right :)
     
  2. Cbswe thread starter macrumors member

    Joined:
    Jan 11, 2010
    #2
    Ironically I just manage to get it working now..
    The reason it didn't work was simply that I had to hide away the old content
    just before I start the animation. :eek:
     

Share This Page