ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > RotateEx Method |
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. The Interpolation parameter controls what type of interpolation, if any, is used for rotation.
This method processes all image channels, including Alpha channel and Extra channels, if they exist.
For highest quality, bilinear interpolation is recommended, especially if the rotation angle is small (less than 5 degrees) and/or the image will be rotated multiple times (not recommended). Bicubic interpolation can be used to achieve a slightly sharper appearance.
RotateEx (ByVal pPage As IGPage, ByVal Angle As Double, ByVal
RotationMode As enumIGRotationModes, ByVal Interpolation As
enumIGInterpolations)
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:
|
Interpolation |
The value can be:
|
N/A
1, 4, 8, 9-16-bit gray level, 24, 32
Image Processing and Effects