Class Magick::RVG::Pattern
In: lib/rvg/paint.rb
Parent: Object
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

new  

Included Modules

StructureConstructors UseConstructors ShapeConstructors TextConstructors ImageConstructors Stretchable Duplicatable Stylable

Public Class methods

Create a pattern that can be used with the :fill or :stroke styles. The width and height arguments define the viewport. The pattern will be repeated at x+m*width and y+n*height offsets.

Define the pattern in the block. The pattern can be composed of shapes (rectangle, circles, etc.), text, raster images and container objects. You can include graphic objects by referring to them with use.

[Source]

    # File lib/rvg/paint.rb, line 29
29:         def initialize(width=0, height=0, x=0, y=0)
30:             super()
31:             @width, @height, @x, @y = Magick::RVG.convert_to_float(width, height, x, y)
32:             @content = Content.new
33:             yield(self) if block_given?
34:         end

[Validate]