Class Magick::Image
In: lib/RMagick.rb
Parent: Object

Ruby-level Magick::Image methods

Methods

Included Modules

Comparable

Classes and Modules

Class Magick::Image::View

External Aliases

remap -> affinity

Public Instance methods

Provide an alternate version of Draw#annotate, for folks who want to find it in this class.

Set all pixels that are neighbors of x,y and are not the border color to the fill color

Set all pixels that have the same color as the pixel at x,y and are neighbors to the fill color

Set the color at x,y

Set all pixels to the fill color. Very similar to Image#erase! Accepts either String or Pixel arguments

crop_resized(ncols, nrows=nil, gravity=CenterGravity)

Alias for resize_to_fill

crop_resized!(ncols, nrows=nil, gravity=CenterGravity)

Alias for resize_to_fill!

Iterate over IPTC record number:dataset tags, yield for each non-nil dataset

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.

Retrieve EXIF data by tag number or all tag/value pairs. The return value is a hash.

Retrieve IPTC information by record number:dataset tag constant defined in Magick::IPTC, above.

(Thanks to Al Evans for the suggestion.)

Make transparent any neighbor pixel that is not the border color.

Make transparent any pixel that matches the color of the pixel at (x,y) and is a neighbor.

Make the pixel at (x,y) transparent.

Make transparent all pixels that are the same color as the pixel at (x, y).

Make all pixels transparent.

Corresponds to ImageMagick‘s -resample option

Force an image to exact dimensions without changing the aspect ratio. Resize and crop if necessary. (Thanks to Jerett Taylor!)

Convenience method to resize retaining the aspect ratio. (Thanks to Robert Manni!)

Replace neighboring pixels to border color with texture pixels

Replace matching neighboring pixels with texture pixels

Construct a view. If a block is present, yield and pass the view object, otherwise return the view object.

[Validate]