ImageGear .NET - Updated
Rotate(ImGearPage,Double,ImGearRotationModes,ImGearPixel,ImGearInterpolations) Method




ImageGear24.Core Assembly > ImageGear.Processing Namespace > ImGearProcessing Class > Rotate Method : Rotate(ImGearPage,Double,ImGearRotationModes,ImGearPixel,ImGearInterpolations) Method
Image to rotate.
Rotation angle in degrees.
Rotation mode (clip or expand).
Background color to fill the out of picture area; null (Nothing in VB NET) results in black background.
Interpolation to use for rotation.
Rotates an image using interpolation.
Syntax
'Declaration
 
Public Overloads Shared Sub Rotate( _
   ByVal page As ImGearPage, _
   ByVal angle As Double, _
   ByVal mode As ImGearRotationModes, _
   ByVal background As ImGearPixel, _
   ByVal interpolation As ImGearInterpolations _
) 
'Usage
 
Dim page As ImGearPage
Dim angle As Double
Dim mode As ImGearRotationModes
Dim background As ImGearPixel
Dim interpolation As ImGearInterpolations
 
ImGearProcessing.Rotate(page, angle, mode, background, interpolation)
public static void Rotate( 
   ImGearPage page,
   double angle,
   ImGearRotationModes mode,
   ImGearPixel background,
   ImGearInterpolations interpolation
)
public: static void Rotate( 
   ImGearPage* page,
   double angle,
   ImGearRotationModes mode,
   ImGearPixel* background,
   ImGearInterpolations interpolation
) 
public:
static void Rotate( 
   ImGearPage^ page,
   double angle,
   ImGearRotationModes mode,
   ImGearPixel^ background,
   ImGearInterpolations interpolation
) 

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.
Remarks
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.

See Also

Reference

ImGearProcessing Class
ImGearProcessing Members
Overload List
ImGearPage Class
ImGearRotationModes Enumeration
ImGearPixel Class
ImGearInterpolations Enumeration