Class Magick::RVG::Polyline
In: lib/rvg/embellishable.rb
Parent: PolyShape
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 Enumerable Geometry HatchFill Draw lib/RMagick.rb lib/rvg/rvg.rb ObjectData Application Pre_ObjectData_Descriptor Envelope Post_ObjectData_Descriptor IPTC Magick dot/m_14_0.png

Methods

new  

Public Class methods

Draws a polyline. The arguments are [x, y] pairs that define the points that make up the polyline. At least two points must be specified. Use the RVG::ShapeConstructors#polyline method to create Polyline objects in a container.

[Source]

     # File lib/rvg/embellishable.rb, line 164
164:             def initialize(*points)
165:                 super()
166:                 points = polypoints(points)
167:                 @primitive = :polyline
168:                 @args = Magick::RVG.convert_to_float(*points)
169:             end

[Validate]