diff options
Diffstat (limited to 'dmagick/ImageView.d')
| -rw-r--r-- | dmagick/ImageView.d | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dmagick/ImageView.d b/dmagick/ImageView.d index fbce73c..709c81f 100644 --- a/dmagick/ImageView.d +++ b/dmagick/ImageView.d @@ -362,9 +362,12 @@ struct Pixels */ int opApply(int delegate(ref Color) dg) { + Color color = new Color(); + foreach ( ref PixelPacket pixel; pixels ) { - Color color = new Color(pixel); + color.pixelPacket = pixel; + int result = dg(color); pixel = color.pixelPacket; |
