ImageGear .NET v25.1 - Updated
Deskew Method (ImGearRasterProcessing)
Example 




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : Deskew Method
Image to deskew.
Deskew angle.
Deskew mode.
Background color.
Deskews an image page.
Syntax
'Declaration
 
Public Shared Sub Deskew( _
   ByVal page As ImGearRasterPage, _
   ByVal angleThresh As Double, _
   ByVal mode As ImGearRotationModes, _
   ByVal backgroundColor As ImGearPixel _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim angleThresh As Double
Dim mode As ImGearRotationModes
Dim backgroundColor As ImGearPixel
 
ImGearRasterProcessing.Deskew(page, angleThresh, mode, backgroundColor)
public static void Deskew( 
   ImGearRasterPage page,
   double angleThresh,
   ImGearRotationModes mode,
   ImGearPixel backgroundColor
)
public: static void Deskew( 
   ImGearRasterPage* page,
   double angleThresh,
   ImGearRotationModes mode,
   ImGearPixel* backgroundColor
) 
public:
static void Deskew( 
   ImGearRasterPage^ page,
   double angleThresh,
   ImGearRotationModes mode,
   ImGearPixel^ backgroundColor
) 

Parameters

page
Image to deskew.
angleThresh
Deskew angle.
mode
Deskew mode.
backgroundColor
Background color.
Example
// Deskew an image if it is skewed by over 0.1 degrees.
ImGearRasterProcessing.Deskew(igRasterPage,
    0.1, ImGearRotationModes.CLIP, null);
' Deskew an image if it is skewed by over 0.1 degrees.
ImGearRasterProcessing.Deskew(igRasterPage, 0.1, ImGearRotationModes.CLIP, Nothing)
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
ImGearRasterPage Class
ImGearRotationModes Enumeration
ImGearPixel Class