Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Magick::RVG::ClipPath

Public Class Methods

new(clip_path_units='userSpaceOnUse') click to toggle source

Create a clipping path. Within the block create an outline from one or more paths, basic shapes, text objects, or use. Everything drawn within the outline will be displayed. Anything drawn outside the outline will not.

If the clipping path contains a use, it must directly reference path, basic shape, or text objects.

Attach the clipping path to an object with the :clip_path style.

    # File lib/rvg/clippath.rb, line 25
25:             def initialize(clip_path_units='userSpaceOnUse')
26:                 super()
27:                 if ! ['userSpaceOnUse', 'objectBoundingBox'].include?(clip_path_units)
28:                     raise ArgumentError, "undefined value for clip path units: #{clip_path_units}"
29:                 end
30:                 @clip_path_units = clip_path_units
31:                 @content = Content.new
32:                 yield(self) if block_given?
33:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.