Image crop+compose issue
Posted: 2009-06-08T01:31:18-07:00
that what i wanna to do IM for me
1) I have square piece of an image as source Image let say 800px X 800px.
2) I have an stencil (Suppose a triangle image size say as 100px X 100 px)
3) I have x and y co-ordinate say as x=25px and y=20px
Now what IM should do as first it take source image put the triangle stencil on it BUT the triangle image should be imposed on source image at x=25 and y=20 position.
And finally it cut the triangle stencil containing square's(source image) background.
Pl help me ASAP.
warm regards
Mahendra Varandani
1) I have square piece of an image as source Image let say 800px X 800px.
2) I have an stencil (Suppose a triangle image size say as 100px X 100 px)
3) I have x and y co-ordinate say as x=25px and y=20px
Now what IM should do as first it take source image put the triangle stencil on it BUT the triangle image should be imposed on source image at x=25 and y=20 position.
And finally it cut the triangle stencil containing square's(source image) background.
Pl help me ASAP.
warm regards
Mahendra Varandani