]> granicus.if.org Git - imagemagick/commitdiff
Default color should be transparent.
authorDirk Lemstra <dirk@git.imagemagick.org>
Fri, 16 Feb 2018 14:53:18 +0000 (15:53 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Fri, 16 Feb 2018 14:56:11 +0000 (15:56 +0100)
Magick++/lib/Color.cpp

index ae9b7834ac4575bd1bbf0879ce9fbacfd435538a..4e3bc7f6bef873dfcd096869ef2c467bd2167329 100644 (file)
@@ -70,9 +70,11 @@ Magick::Color::Color(void)
   : _pixel(new PixelInfo),
     _isValid(false),
     _pixelOwn(true),
-    _pixelType(RGBPixel)
+    _pixelType(RGBAPixel)
 {
   initPixel();
+
+  quantumAlpha(TransparentAlpha);
 }
 
 Magick::Color::Color(const Magick::Quantum red_,const Magick::Quantum green_,