summaryrefslogtreecommitdiff
path: root/dmagick/Color.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/Color.d')
-rw-r--r--dmagick/Color.d10
1 files changed, 9 insertions, 1 deletions
diff --git a/dmagick/Color.d b/dmagick/Color.d
index 94b6906..7223d81 100644
--- a/dmagick/Color.d
+++ b/dmagick/Color.d
@@ -79,11 +79,19 @@ class Color
this.packet = packet;
}
- PixelPacket pixelPacket()
+ package PixelPacket pixelPacket() const
{
return *packet;
}
+ package void pixelPacket(PixelPacket packet)
+ {
+ this.packet.red = packet.red;
+ this.packet.green = packet.green;
+ this.packet.blue = packet.blue;
+ this.packet.opacity = packet.opacity;
+ }
+
override bool opEquals(Object obj)
{
Color color = cast(Color)obj;