ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearProcessing Class > Rotate Method : Rotate(ImGearPage,Double,ImGearRotationModes,ImGearPixel) Method |
'Declaration Public Overloads Shared Sub Rotate( _ ByVal page As ImGearPage, _ ByVal angle As Double, _ ByVal mode As ImGearRotationModes, _ ByVal background As ImGearPixel _ )
'Usage Dim page As ImGearPage Dim angle As Double Dim mode As ImGearRotationModes Dim background As ImGearPixel ImGearProcessing.Rotate(page, angle, mode, background)
public static void Rotate( ImGearPage page, double angle, ImGearRotationModes mode, ImGearPixel background )
public: static void Rotate( ImGearPage* page, double angle, ImGearRotationModes mode, ImGearPixel* background )
public: static void Rotate( ImGearPage^ page, double angle, ImGearRotationModes mode, ImGearPixel^ background )
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.
// Find the skew angle of an image. double angle = ImGearRasterProcessing.FindSkewAngle(igRasterPage); // Rotate image by the found skew angle. ImGearProcessing.Rotate(igRasterPage, angle, ImGearRotationModes.CLIP, null);
' Find the skew angle of an image. Dim angle As Double = ImGearRasterProcessing.FindSkewAngle(igRasterPage) ' Rotate image by the found skew angle. ImGearProcessing.Rotate(igRasterPage, angle, ImGearRotationModes.CLIP, Nothing)