Class Magick::RVG::Line
In: lib/rvg/embellishable.rb
Parent: Shape
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  

Public Class methods

Define a line from [x1, y1] to [x2, y2]. Use the RVG::ShapeConstructors#line method to create Line objects in a container.

[Source]

    # File lib/rvg/embellishable.rb, line 64
64:         def initialize(x1=0, y1=0, x2=0, y2=0)
65:             super()
66:             @primitive = :line
67:             @args = [x1, y1, x2, y2]
68:         end

[Validate]