Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- page
- Image to rotate.
- angle
- Rotation angle in degrees.
- mode
- Rotation mode (clip or expand).
- background
- Background color to fill the out of picture area; null (
Nothing
in VB NET) results in black background. - interpolation
- Interpolation to use for rotation.
This method processes all channels of the image as well as image's ROI, if it exists.
Background should be in the same color space as the Page, including Alpha and Extra channels. Background must have the same channel count and bit depth as a DIB?s color space.
Use CanApplyRotate method to check whether the operation can be performed.
Supported interpolations are BILINEAR
and BICUBIC
. Interpolation is supported for non-indexed images, and for indexed images with grayscale palette. It is not supported for 1bpp images.