Module Magick::RVG::ImageConstructors
In: lib/rvg/embellishable.rb
Enum GeometryValue Stylable RVG\n[lib/rvg/clippath.rb\nlib/rvg/container.rb\nlib/rvg/deep_equal.rb\nlib/rvg/describable.rb\nlib/rvg/embellishable.rb\nlib/rvg/misc.rb\nlib/rvg/paint.rb\nlib/rvg/pathdata.rb\nlib/rvg/rvg.rb\nlib/rvg/stretchable.rb\nlib/rvg/stylable.rb\nlib/rvg/text.rb\nlib/rvg/transformable.rb\nlib/rvg/units.rb] Transformable Stretchable Embellishable Describable Duplicatable Comparable Image ImageList Array Geometry HatchFill Draw lib/RMagick.rb lib/rvg/units.rb Magick Module: Magick

Methods that construct raster image objects within a container

Methods

image  

Public Instance methods

Composite a raster image at [x,y] in a viewport of the specified width and height. If not specified, the width and height are the width and height of the image. Use the RVG::PreserveAspectRatio#preserve_aspect_ratio method to control the placement and scaling of the image within the viewport. By default, the image is scaled to fit inside the viewport and centered within the viewport.

[Source]

     # File lib/rvg/embellishable.rb, line 395
395:         def image(image, width=nil, height=nil, x=0, y=0)
396:             img = Image.new(image, width, height, x, y)
397:             @content << img
398:             return img
399:         end

[Validate]