ImageGear for C and C++ on Windows v19.6 - Updated
ART_rotation_angle_set
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Rotation Functions > ART_rotation_angle_set

This function determines the angle (in degrees) that an annotation rotates.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_rotation_angle_set (
        HIGEAR hIGear,
        DWORD dwAngle
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.
dwAngle DWORD The angle at which to rotate.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Example:

 
Copy Code
HIGEAR hIGear;   /* HIGEAR handle of Image  */
AT_ERRCOUNT nErrCount; /* Tally of IG errors on stack  */
nErrCount = ART_rotation_angle_set (hIGear,90);

Remarks:

Valid values are 0, 90, 180, 270. The default is 0. Any other value (not 0, 90, 180, 270) is interpreted as 0.