return(false);
}
-void Magick::Image::alphaColor(const Color &alphaColor_)
+void Magick::Image::matteColor(const Color &matteColor_)
{
modifyImage();
- if (alphaColor_.isValid())
+ if (matteColor_.isValid())
{
- image()->alpha_color=alphaColor_;
- options()->alphaColor(alphaColor_);
+ image()->matte_color=matteColor_;
+ options()->matteColor(matteColor_);
}
else
{
// Set to default matte color
Color tmpColor("#BDBDBD");
- image()->alpha_color=tmpColor;
- options()->alphaColor(tmpColor);
+ image()->matte_color=tmpColor;
+ options()->matteColor(tmpColor);
}
}
-Magick::Color Magick::Image::alphaColor(void) const
+Magick::Color Magick::Image::matteColor(void) const
{
- return(Color(constImage()->alpha_color));
+ return(Color(constImage()->matte_color));
}
void Magick::Image::animationDelay(const size_t delay_)
bool alpha(void) const;
// Transparent color
- void alphaColor(const Color &alphaColor_);
- Color alphaColor(void) const;
+ void matteColor(const Color &matteColor_);
+ Color matteColor(void) const;
// Time in 1/100ths of a second which must expire before
// displaying the next image in an animated sequence.
~MontageFramed(void);
// Frame foreground color
- void alphaColor(const Color &alphaColor_);
- Color alphaColor(void) const;
+ void matteColor(const Color &matteColor_);
+ Color matteColor(void) const;
// Frame border color
void borderColor(const Color &borderColor_);
private:
- Color _alphaColor;
+ Color _matteColor;
Color _borderColor;
size_t _borderWidth;
Geometry _frame;
bool adjoin(void) const;
// Transparent color
- void alphaColor(const Color &alphaColor_);
- Color alphaColor(void) const;
+ void matteColor(const Color &matteColor_);
+ Color matteColor(void) const;
// Image background color
void backgroundColor(const Color &color_);
};
// Transparent color
- class MagickPPExport alphaColorImage
+ class MagickPPExport matteColorImage
{
public:
- alphaColorImage( const Color &alphaColor_ );
+ matteColorImage( const Color &matteColor_ );
void operator()( Image &image_ ) const;
private:
- Color _alphaColor;
+ Color _matteColor;
};
// Indicate that image is black and white
{
(void) MagickCore::ResetMagickMemory(&montageInfo_,0,sizeof(montageInfo_));
- // alpha_color
- montageInfo_.alpha_color=Color();
+ // matte_color
+ montageInfo_.matte_color=Color();
// background_color
montageInfo_.background_color=_backgroundColor;
// border_color
//
Magick::MontageFramed::MontageFramed(void)
- : _alphaColor("#bdbdbd"),
+ : _matteColor("#bdbdbd"),
_borderColor("#dfdfdf"),
_borderWidth(0),
_frame()
{
}
-void Magick::MontageFramed::alphaColor(const Magick::Color &alphaColor_)
+void Magick::MontageFramed::matteColor(const Magick::Color &matteColor_)
{
- _alphaColor=alphaColor_;
+ _matteColor=matteColor_;
}
-Magick::Color Magick::MontageFramed::alphaColor(void) const
+Magick::Color Magick::MontageFramed::matteColor(void) const
{
- return(_alphaColor);
+ return(_matteColor);
}
void Magick::MontageFramed::borderColor(const Magick::Color &borderColor_)
// Do base updates
Montage::updateMontageInfo(montageInfo_);
- // alpha_color
- montageInfo_.alpha_color = _alphaColor;
+ // matte_color
+ montageInfo_.matte_color = _matteColor;
// border_color
montageInfo_.border_color=_borderColor;
// border_width
return(static_cast<bool>(_imageInfo->adjoin));
}
-void Magick::Options::alphaColor(const Color &alphaColor_)
+void Magick::Options::matteColor(const Color &matteColor_)
{
- _imageInfo->alpha_color=alphaColor_;
+ _imageInfo->matte_color=matteColor_;
}
-Magick::Color Magick::Options::alphaColor(void) const
+Magick::Color Magick::Options::matteColor(void) const
{
- return(Magick::Color(_imageInfo->alpha_color));
+ return(Magick::Color(_imageInfo->matte_color));
}
void Magick::Options::backgroundColor(const Color &color_)
}
// Transparent color
-Magick::alphaColorImage::alphaColorImage( const Color &alphaColor_ )
- : _alphaColor( alphaColor_ )
+Magick::matteColorImage::matteColorImage( const Color &matteColor_ )
+ : _matteColor( matteColor_ )
{
}
-void Magick::alphaColorImage::operator()( Magick::Image &image_ ) const
+void Magick::matteColorImage::operator()( Magick::Image &image_ ) const
{
- image_.alphaColor( _alphaColor );
+ image_.matteColor( _matteColor );
}
// Indicate that image is black and white
image.alpha(false);
//
- // alphaColor
+ // matteColor
//
// Test default
- if ( image.alphaColor() != Color("#BDBDBD") )
+ if ( image.matteColor() != Color("#BDBDBD") )
{
++failures;
cout << "Line: " << __LINE__
- << ", alphaColor default is not #BDBDBD as expected" << endl;
+ << ", matteColor default is not #BDBDBD as expected" << endl;
}
// Test set/get
- image.alphaColor(ColorRGB(0.5,0.5,1));
- if ( image.alphaColor() != ColorRGB(0.5,0.5,1) )
+ image.matteColor(ColorRGB(0.5,0.5,1));
+ if ( image.matteColor() != ColorRGB(0.5,0.5,1) )
{
++failures;
- cout << "Line: " << __LINE__ << ", alphaColor set/get failed" << endl;
+ cout << "Line: " << __LINE__ << ", matteColor set/get failed" << endl;
}
// Test unset
- image.alphaColor( Color() );
+ image.matteColor( Color() );
- image.alphaColor("#BDBDBD");
+ image.matteColor("#BDBDBD");
//
// meanErrorPerPixel