1 Reply Latest reply on Jan 20, 2011 11:35 PM by Flex harUI

    How to fit image inside canvas Container?

    chandu3107

      Hi All,

       

      I want to fit an image inside a canvas.

      Making x and y to 0 of image is not working.

       

      My problem is I am rotating image at 90 and I want to save that image. If i save normally it is not taking rotation.

      So I am adding that image in a canvas and saving that canvas with rotated image.

       

      Somehow some portion of canvas still remains empty after adding image to it.

       

      Any idea how to perfectly fit image inside canvas?

       

      Or How to rotate image bitmap data with maintainig aspect ratio?

       

      Thank in advance