Commit bee88fcd authored by dirk's avatar dirk

Added clip/clipPath to Magick++.

parent 6edd1e57
......@@ -750,6 +750,21 @@ void Magick::Image::clampChannel ( const ChannelType channel_ )
throwImageException();
}
void Magick::Image::clip ( void )
{
modifyImage();
ClipImage( image() );
throwImageException();
}
void Magick::Image::clipPath ( const std::string pathname_,
const bool inside_ )
{
modifyImage();
ClipImagePath( image(), pathname_.c_str(), (MagickBooleanType) inside_);
throwImageException();
}
void Magick::Image::clut ( const Image &clutImage_ )
{
modifyImage();
......
......@@ -266,6 +266,12 @@ namespace Magick
void clamp ( void );
void clampChannel ( const ChannelType channel_ );
// Sets the image clip mask based on any clipping path information
// if it exists.
void clip ( void );
void clipPath ( const std::string pathname_,
const bool inside_ );
// Apply a color lookup table (CLUT) to the image.
void clut ( const Image &clutImage_ );
void clutChannel ( const ChannelType channel_,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment