options()->transformScale(sx_,sy_);
}
-void Magick::Image::transparent(const Color &color_)
+void Magick::Image::transparent(const Color &color_,const bool inverse_)
{
PixelInfo
target;
(void) QueryColorCompliance(color.c_str(),AllCompliance,&target,
exceptionInfo);
modifyImage();
- TransparentPaintImage(image(),&target,TransparentAlpha,MagickFalse,
- exceptionInfo);
+ TransparentPaintImage(image(),&target,TransparentAlpha,
+ inverse_ == true ? MagickTrue : MagickFalse,exceptionInfo);
ThrowImageException;
}
// Add matte image to image, setting pixels matching color to
// transparent
- void transparent(const Color &color_);
+ void transparent(const Color &color_,const bool inverse_=false);
// Add matte image to image, for all the pixels that lies in between
// the given two color