{"channel", MagickChannelOptions} } },
{ "Roll", { {"geometry", StringReference}, {"x", IntegerReference},
{"y", IntegerReference} } },
- { "Rotate", { {"degrees", RealReference}, {"fill", StringReference},
- {"color", StringReference}, {"background", StringReference} } },
+ { "Rotate", { {"degrees", RealReference},
+ {"background", StringReference} } },
{ "Sample", { {"geometry", StringReference}, {"width", IntegerReference},
{"height", IntegerReference} } },
{ "Scale", { {"geometry", StringReference}, {"width", IntegerReference},
if (attribute_flag[0] == 0)
argument_list[0].real_reference=90.0;
if (attribute_flag[1] != 0)
- QueryColorCompliance(argument_list[1].string_reference,
- AllCompliance,&image->background_color,exception);
- if (attribute_flag[2] != 0)
- QueryColorCompliance(argument_list[2].string_reference,
- AllCompliance,&image->background_color,exception);
- if (attribute_flag[3] != 0)
- QueryColorCompliance(argument_list[3].string_reference,
- AllCompliance,&image->background_color,exception);
+ {
+ QueryColorCompliance(argument_list[1].string_reference,
+ AllCompliance,&image->background_color,exception);
+ if ((image->background_color.matte != MagickFalse) &&
+ (image->matte == MagickFalse))
+ (void) SetImageAlpha(image,OpaqueAlpha,exception);
+ }
image=RotateImage(image,argument_list[0].real_reference,exception);
break;
}