5 Replies Latest reply on Feb 26, 2013 2:50 PM by MikeBrog

    Scaling and positioning images in frame

    MikeBrog Level 1

      In JavaScript I'm trying to place an image into a frame that already exists and then scale the image to a specific size and move it into a specific position within the frame.

       

      I'm placing using:

       

      pageItem.place(File(imagePath+name));

       

      I've tried looking for the code, but all I can find are standard fit content to frame, center content, etc.

       

      I tried...

       

      pageItem.verticalScale = 90;

       

      ...and it resizes the frame, not the content of the frame.

       

      How do I apply this to the content?

       

      Do I have to set up a transformation matrix?

       

      Could someone share the lines of code to do this?

       

      Thanks!