RMagick > image crop or clipp with 4 cornres coordinates

X

xu87785

hi,

newbie for Rmagick...

is there any methods to crop or clipp original image with 4 corners
coordinates (xi, yi) i=1...4. Have seen it is possible to use
ImageList::crop(x,y,heigth, wigth) to get a rectangle sub-image.

thanks in advances!
vinc.
 
S

Serabe

2008/9/17 said:
hi,
Hi,

newbie for Rmagick...

is there any methods to crop or clipp original image with 4 corners
coordinates (xi, yi) i=1...4. Have seen it is possible to use
ImageList::crop(x,y,heigth, wigth) to get a rectangle sub-image.

If you want something general, look at the methods define_clip_path
and clip_path of the class Draw. Take a special look to the example of
the clip_path method (just click on the image to see the code) in the
RMagick doc.
thanks in advances!

I hope it to help you.

Serabe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top