ImageGear v26.5 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / FindSkewAngle Method
Raster page for which a skew angle is detected.
Example




In This Topic
    FindSkewAngle Method
    In This Topic
    Determines skew angle.
    Syntax
    'Declaration
     
    Public Shared Function FindSkewAngle( _
       ByVal page As ImGearRasterPage _
    ) As Double
    'Usage
     
    Dim page As ImGearRasterPage
    Dim value As Double
     
    value = ImGearRasterProcessing.FindSkewAngle(page)
    public static double FindSkewAngle( 
       ImGearRasterPage page
    )
    public: static double FindSkewAngle( 
       ImGearRasterPage* page
    ) 
    public:
    static double FindSkewAngle( 
       ImGearRasterPage^ page
    ) 

    Parameters

    page
    Raster page for which a skew angle is detected.

    Return Value

    Skew angle being detected, in degrees.
    Example
    // 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)
    See Also