diff options
| author | Mike Wey | 2011-10-23 21:04:08 +0200 |
|---|---|---|
| committer | Mike Wey | 2011-10-23 21:04:08 +0200 |
| commit | cef335019bf361676c82606d407b2947ad44e156 (patch) | |
| tree | f9f7d8fdee9f425ffb5b78943f5de3c51f9e51a4 /dmagick/Color.d | |
| parent | a9ef6c0b46ba044feb4b38d8faef6b75a49e91b5 (diff) | |
Alias the symbols from the headers that are used in DMagick, so the user doesn't have to import them separately.
Diffstat (limited to 'dmagick/Color.d')
| -rw-r--r-- | dmagick/Color.d | 6 |
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 ) |
