### Home Classes Methods

### In Files

- lib/rvg/clippath.rb

### Parent

Object

### Methods

- ::new

### Included Modules

- Magick::RVG::ShapeConstructors
- Magick::RVG::UseConstructors
- Magick::RVG::TextConstructors
- Magick::RVG::Describable
- Magick::RVG::Stylable
- Magick::RVG::Duplicatable

### Files

- MANIFEST
- Makefile

### Class/Module Index

Quicksearch

- Magick
- Magick::DestroyedImageError
- Magick::Draw
- Magick::Enum
- Magick::FatalImageMagickError
- Magick::Geometry
- Magick::GeometryValue
- Magick::GradientFill
- Magick::HatchFill
- Magick::IPTC
- Magick::IPTC::Application
- Magick::IPTC::Envelope
- Magick::IPTC::ObjectData
- Magick::IPTC::Post_ObjectData_Descriptor
- Magick::IPTC::Pre_ObjectData_Descriptor
- Magick::Image
- Magick::Image::DrawOptions
- Magick::Image::Info
- Magick::Image::PolaroidOptions
- Magick::Image::View
- Magick::Image::View::Pixels
- Magick::Image::View::Rows
- Magick::ImageList
- Magick::ImageList::Montage
- Magick::ImageMagickError
- Magick::OptionalMethodArguments
- Magick::Pixel
- Magick::RVG
- Magick::RVG::Circle
- Magick::RVG::ClipPath
- Magick::RVG::Describable
- Magick::RVG::Duplicatable
- Magick::RVG::Ellipse
- Magick::RVG::Embellishable
- Magick::RVG::Group
- Magick::RVG::Image
- Magick::RVG::ImageConstructors
- Magick::RVG::Line
- Magick::RVG::Path
- Magick::RVG::PathData
- Magick::RVG::Pattern
- Magick::RVG::PolyShape
- Magick::RVG::Polygon
- Magick::RVG::Polyline
- Magick::RVG::PreserveAspectRatio
- Magick::RVG::Rect
- Magick::RVG::ShapeConstructors
- Magick::RVG::Stretchable
- Magick::RVG::StructureConstructors
- Magick::RVG::Stylable
- Magick::RVG::Text
- Magick::RVG::TextBase
- Magick::RVG::TextConstructors
- Magick::RVG::Transformable
- Magick::RVG::Use
- Magick::RVG::UseConstructors
- Magick::RVG::Utility
- Magick::RVG::Utility::DefaultTextStrategy
- Magick::RVG::Utility::GraphicContext
- Magick::RVG::Utility::LRTextStrategy
- Magick::RVG::Utility::RLTextStrategy
- Magick::RVG::Utility::TBTextStrategy
- Magick::RVG::Utility::TextAttributes
- Magick::RVG::Utility::TextStrategy
- Magick::TextureFill
- Object

No matching classes.

# 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
    def initialize(clip_path_units='userSpaceOnUse')
        super()
        if ! ['userSpaceOnUse', 'objectBoundingBox'].include?(clip_path_units)
            raise ArgumentError, "undefined value for clip path units: #{clip_path_units}"
        end
        @clip_path_units = clip_path_units
        @content = Content.new
        yield(self) if block_given?
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.