ImageGear Professional for Windows ActiveX
Rotate Method

Description:

Rotates an image about its center through the angle indicated by Angle. (Angle must be expressed in degrees, such as 45.0 to rotate 45 degrees.) RotateMode is examined to determined whether to clip the image or resize the bitmap. Set the IGProcessingCtl Control.BackColor Property to the color that you would like to display in the background that was previously covered by the image before it was rotated.

This method processes all image channels, including Alpha channel and Extra channels, if they exist.

Syntax:

      Rotate (ByVal pPage As IGPage, ByVal Angle As Double, ByVal
RotationMode As enumIGRotationModes)

Parameters:

Name Description
pPage Reference to IGPage Object.
Angle Set to a positive or negative value for angle of rotation.
RotationMode The value can be either:
  • IG_ROTATE_CLIP - clip the rotated image to keep the image bitmap the same size.
  • IG_ROTATE_EXPAND - expand the size of the bitmap if necessary to retain the entire rotated image.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 9-16-bit gray level, 24, 32

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback