Class

Image

Extends:

Includes:

Ruby-level Magick::Image methods

Classes
View Magick::Image::View class
Public Methods
annotate Provide an alternate version of Draw#annotate, for folks who want to find it in this class.
color_fill_to_border Set all pixels that are neighbors of x,y and are not the border color to the fill color
color_floodfill Set all pixels that have the same color as the pixel at x,y and are neighbors to the fill color
color_point Set the color at x,y
color_reset! Set all pixels to the fill color. Very similar to Image#erase! Accepts either String or Pixel arguments
crop_resized Force an image to exact dimensions without changing the aspect ratio. Resize and crop if necessary. (Thanks to Jerett Taylor!)
crop_resized!
cur_image Used by ImageList methods - see ImageList#cur_image
each_iptc_dataset Iterate over IPTC record number:dataset tags, yield for each non-nil dataset
get_exif_by_entry Retrieve EXIF data by entry or all. If one or more entry names specified, return the values associated with the entries. If no entries specified, return all entries and values. The return value is an array of [name,value] arrays.
get_exif_by_number Retrieve EXIF data by tag number or all tag/value pairs. The return value is a hash.
get_iptc_dataset Retrieve IPTC information by record number:dataset tag constant defined in Magick::IPTC, above.
level (Thanks to Al Evans for the suggestion.)
matte_fill_to_border Make transparent any neighbor pixel that is not the border color.
matte_floodfill Make transparent any pixel that matches the color of the pixel at (x,y) and is a neighbor.
matte_point Make the pixel at (x,y) transparent.
matte_replace Make transparent all pixels that are the same color as the pixel at (x, y).
matte_reset! Make all pixels transparent.
resample Corresponds to ImageMagick’s -resample option
resize_to_fit Convenience method to resize retaining the aspect ratio. (Thanks to Robert Manni!)
resize_to_fit!
texture_fill_to_border Replace neighboring pixels to border color with texture pixels
texture_floodfill Replace matching neighboring pixels with texture pixels
view Construct a view. If a block is present, yield and pass the view object, otherwise return the view object.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.