Displaying scaled pictures


    May 07 2011 | 8:12 pm
    Hi guys,
    I'm just a audio guy forced to mess with Jitter and since I am becoming mad about one issue, I'm kindly asking you for help.
    I need to display png's with transparent background (that I've already sorted out somehow) and scale them real time. Seems like a not-so-hard job, but I still cannot manage. I can manage to scale my gl.videoplane - but that's not what I need, because than when the plane is smaller, I can move (offset) my image only on its borders, of course. I tried using matrix in the middle and to scale that but also didn't work out. Can you please push me / help me in the right direction?
    Also - additional question - it would be perfect if the images will scale up equally on all sides - not just x and y growing, how would you that?
    Thank you a lot!
    Love, Jonas

    • May 08 2011 | 2:07 am
      Not exactly sure I understand what you're after, but take a look at jit.rota, and its zoom_x and zoom_y (and offset_x and offset_y) attributes.