ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearProcessing Class > Rotate Method : Rotate(ImGearPage,Double,ImGearRotationModes,ImGearPixel,ImGearInterpolations) Method |
Nothing
in VB NET) results in black background.
'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 )
Nothing
in VB NET) results in black 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.
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.