summaryrefslogtreecommitdiff
path: root/dmagick/Color.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/Color.d')
-rw-r--r--dmagick/Color.d6
1 files changed, 5 insertions, 1 deletions
diff --git a/dmagick/Color.d b/dmagick/Color.d
index 2ddaa64..c9ea1ee 100644
--- a/dmagick/Color.d
+++ b/dmagick/Color.d
@@ -74,7 +74,7 @@ class Color
* Create a Color and set the internal pointer to this PixelPacket.
* We can use this to change pixels in an image through Color.
*/
- this(PixelPacket* packet)
+ package this(PixelPacket* packet)
{
this.packet = packet;
}
@@ -92,6 +92,7 @@ class Color
this.packet.opacity = packet.opacity;
}
+ /** */
override bool opEquals(Object obj)
{
Color color = cast(Color)obj;
@@ -102,6 +103,9 @@ class Color
return pixelPacket == color.pixelPacket;
}
+ /**
+ * Returns the value as a hex string.
+ */
override string toString()
{
static if ( MagickQuantumDepth == 8 )