From: Antonio Cangiano Date: 2005-12-27T06:32:52+09:00 Subject: Re: Getting the color of a pixel Thomas wrote: > Hi, Hi Thomas, > 1. How do I get the color of a specific pixel? (By giving it the > coordinates of the pixel) Image.pixel_color: http://www.simplesystems.org/RMagick/doc/image2.html#pixel_color > 2. How do I store parts of a picture to a file? (So like everything > between points (3,7) and (90,300)) You could use: Image.crop(x, y, width, height) Where x and y are the offsets of the rectangle relative to the upper-left corner of the image. width and height are the dimensions of your desidered region. http://www.simplesystems.org/RMagick/doc/image1.html#crop Cheers, Antonio -- Antonio Cangiano My Ruby blog: http://www.antoniocangiano.com