put image with translation on a canvas then crop it
Posted: 2014-05-02T08:05:50-07:00
Hi
I'm trying for weeks now and I'm not geting anywhere.
So I have an image and I have a matrix translate string : t320.804,-254.3717s1.1201,1.1201,0,0r45,0,0
Now I want to put the image (with the translation) onto a canvas of 800 x 600.
After that I want to crop the image (from the center) to 400x200
My first attempt was to create a real image of 800 x 600, then tried to put an image with a affine translation onto it. But somehow, the whole canvas was messed up.
Then I tried with a repage, but no luck either (I think I'm not using it properly).
Any suggestion to do this?
I'm trying for weeks now and I'm not geting anywhere.
So I have an image and I have a matrix translate string : t320.804,-254.3717s1.1201,1.1201,0,0r45,0,0
Now I want to put the image (with the translation) onto a canvas of 800 x 600.
After that I want to crop the image (from the center) to 400x200
My first attempt was to create a real image of 800 x 600, then tried to put an image with a affine translation onto it. But somehow, the whole canvas was messed up.
Then I tried with a repage, but no luck either (I think I'm not using it properly).
Any suggestion to do this?