class Magick::Image::Info

Attributes

format[RW]

Public Class Methods

new(&add) click to toggle source
# File lib/rmagick4j/image.rb, line 335
def initialize(&add)
  @info = Magick4J.ImageInfo.new
  instance_eval &add if add
end

Public Instance Methods

_info() click to toggle source
# File lib/rmagick4j/image.rb, line 331
def _info
  @info
end
background_color=(background_color) click to toggle source

TODO Replace with call to Java, or is this the better way? Should it be converted to the Java version only later?

# File lib/rmagick4j/image.rb, line 325
def background_color= background_color
  @info.setBackgroundColor(Magick4J.ColorDatabase.queryDefault(background_color))
end
size=(size) click to toggle source
# File lib/rmagick4j/image.rb, line 340
def size= size
  size = Geometry.from_s(size) if size.is_a? String
  geometry = Magick4J.Geometry.new
  geometry.setWidth(size.width)
  geometry.setHeight(size.height)
  @info.setSize(geometry)
end