compression;
const char
- *comment;
+ *comment,
+ *value;
const double
midpoint = QuantumRange/2.0;
if ((image->orientation == TopLeftOrientation) ||
(image->orientation == TopRightOrientation))
tga_info.attributes|=(1UL << 5);
+ value=GetImageArtifact(image,"tga:image-origin"); /* deprecated */
+ if (value != (const char *) NULL)
+ {
+ OrientationType
+ origin;
+
+ origin=(OrientationType) ParseCommandOption(MagickOrientationOptions,
+ MagickFalse,value);
+ if (origin == BottomRightOrientation || origin == TopRightOrientation)
+ tga_info.attributes|=(1UL << 4);
+ if (origin == TopLeftOrientation || origin == TopRightOrientation)
+ tga_info.attributes|=(1UL << 5);
+ }
/*
Write TGA header.
*/