module Magick

$Id: misc.rb,v 1.17 2010/03/21 01:43:01 baror Exp $ Copyright © 2009 Timothy P. Hunter

Defines paint server classes. Eventually this will include gradients.

RVG is the main class in this library. All graphic elements must be contained within an RVG object.

Text-related classes

$Id: units.rb,v 1.5 2009/02/28 23:52:28 rmagick Exp $ Copyright © 2009 Timothy P. Hunter

Constants

AreaGeometry
AspectGeometry
GreaterGeometry
IMAGEMAGICK_VERSION
LessGeometry
Long_version
MANAGED_MEMORY
MIN_IM_VERSION
MIN_RUBY_VERSION
Magick_features
Magick_version
MinimumGeometry
PercentGeometry
VERSION
Version

Public Class Methods

formats(&block) click to toggle source

Describes the image formats supported by ImageMagick. If the optional block is present, calls the block once for each image format. The first argument, k, is the format name. The second argument, v, is the properties string described below.

  • B is “*” if the format has native blob support, or “ ” otherwise.

  • R is “r” if ImageMagick can read that format, or “-” otherwise.

  • W is “w” if ImageMagick can write that format, or “-” otherwise.

  • A is “+” if the format supports multi-image files, or “-” otherwise.

@overload formats

@return [Hash] the formats hash

@overload formats

@yield [k, v]
@yieldparam k [String] the format name
@yieldparam v [String] the properties string
@return [Magick]

@example

p Magick.formats
=> {"3FR"=>" r-+", "3G2"=>" r-+", "3GP"=>" r-+", "A"=>"*rw+",
...
# File lib/rmagick_internal.rb, line 51
def formats(&block)
  formats = init_formats

  if block
    formats.each(&block)
    self
  else
    formats
  end
end