'Declaration
Public Overloads Function GetSkewAngle( _ ByVal ImageID As Integer, _ ByVal MaxAngleOfResearch As Single, _ ByVal AngleStep As Single, _ ByVal Optimistic As Boolean _ ) As Single
public float GetSkewAngle( int ImageID, float MaxAngleOfResearch, float AngleStep, bool Optimistic )
public function GetSkewAngle( ImageID: Integer; MaxAngleOfResearch: Single; AngleStep: Single; Optimistic: Boolean ): Single;
public function GetSkewAngle( ImageID : int, MaxAngleOfResearch : float, AngleStep : float, Optimistic : boolean ) : float;
public: float GetSkewAngle( int ImageID, float MaxAngleOfResearch, float AngleStep, bool Optimistic )
public: float GetSkewAngle( int ImageID, float MaxAngleOfResearch, float AngleStep, bool Optimistic )
Parameters
- ImageID
- GdPicture image identifier.
- MaxAngleOfResearch
- Maximum angle of research. IE: set 10 to perform a skew research about ±10 degrees. A value lower than 15 is suggested.
- AngleStep
- Determines the smallest angle of skew to detect. 0.25 is suggested. Higher value results in faster detection and vice-versa.
- Optimistic
- Determines if the engine must be optimistic in the skew detection. For example, set true when you know the image has a skew and false otherwise. If you do not know which to choose, suggested value is false.
Return Value
Image skew in degrees.