Results 1 to 2 of 2

Thread: Opacity animation for VGImage

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    7

    Opacity animation for VGImage

    Hi All,

    I am trying to animate the opacity of VGImage using VG_COLOR_TRANSFORM. However, I have read on a Qt/Trolltech blog that opacity animation for a VGImage can be achieved via vgColorMatrix(). But that approach has severe performance implications. The blog is:

    http://swik.net/Trolltech/Trolltech+Lab ... enVG/df9sz

    My question is: out of the following two approaches, which one is the recommended one to get the desired result?

    1 - using vgColorMatrix
    2 - using VG_COLOR_TRANSFORM

    Thanks.

    Regards,
    Javed

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    5

    Re: Opacity animation for VGImage

    VG_COLOR_TRANSFORM is probably the quickest, vgColorMatrix is a richer operation in terms of its capabilities, but involves an implicit image copy operation.

    vgColourMatrix might still be worth considering if you are applying the colour transformation once to an image at the start of your application, but I wouldn't recommend it for runtime use.

    Regards,

    Alex
    Alex Walters, OpenVG Design Engineer, Imagination Technologies
    http://www.powervrinsider.com | http://www.imgtec.com/forum

Similar Threads

  1. What is the difference bettwen VGImage and EGLSurface?
    By user42 in forum OpenVG and VGU
    Replies: 1
    Last Post: 09-17-2008, 10:50 AM
  2. Animation Compiling
    By Anim8ir in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 04-13-2004, 05:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •