SetBluePixelComponent(q,ScaleShortToQuantum((unsigned short) blue));
SetOpacityPixelComponent(q,OpaqueOpacity);
if (image->matte != MagickFalse)
- SetOpacityPixelComponent(q,ScaleShortToQuantum((unsigned short)
- (65535-opacity)));
+ SetAlphaPixelComponent(q,ScaleShortToQuantum((unsigned short)
+ opacity));
q++;
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
SetBluePixelComponent(q,ScaleShortToQuantum((unsigned short) blue));
SetOpacityPixelComponent(q,OpaqueOpacity);
if (image->matte != MagickFalse)
- q->opacity=ScaleShortToQuantum((unsigned short) (65535-opacity));
+ SetAlphaPixelComponent(q,ScaleShortToQuantum((unsigned short)
+ opacity));
q++;
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)