}
else
{
- Image
- *resize_alpha;
-
/*
Image has transparency so handle colors and alpha separatly.
Basically we need to separate Virtual-Pixel alpha in the resized
distort alpha channel separately
*/
+ Image
+ *resize_alpha;
+
(void) SetImageAlphaChannel(tmp_image,ExtractAlphaChannel,exception);
(void) SetImageAlphaChannel(tmp_image,OpaqueAlphaChannel,exception);
resize_alpha=DistortImage(tmp_image,AffineDistortion,12,distort_args,
}
if ((IsPixelInfoGray(&distort_image->background_color) == MagickFalse) &&
(IsGrayColorspace(distort_image->colorspace) != MagickFalse))
- (void) TransformImageColorspace(distort_image,sRGBColorspace,exception);
+ (void) TransformImageColorspace(distort_image,RGBColorspace,exception);
if (distort_image->background_color.matte != MagickFalse)
distort_image->matte=MagickTrue;
distort_image->page.x=geometry.x;
invalid=distort_image->matte_color;
if (distort_image->colorspace == CMYKColorspace)
- ConvertsRGBToCMYK(&invalid); /* what about other color spaces? */
+ ConvertRGBToCMYK(&invalid); /* what about other color spaces? */
for (i=0; i < (ssize_t) distort_image->columns; i++)
{
/* map pixel coordinate to distortion space coordinate */
*distort_image,
*rotate_image;
- MagickRealType
+ double
angle;
PointInfo