ImageMan.Net Version 3 Summer 2012 Release
GetBorders Method
See Also  Send Feedback
DTI.ImageMan Namespace > Analyze Class : GetBorders Method





img
ImImage to scan for potential borders

Glossary Item Box

Returns a Rectangle representing the area of the image without borders.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetBorders( _
   ByVal img As ImImage _
) As System.Drawing.Rectangle
Visual Basic (Usage)Copy Code
Dim img As ImImage
Dim value As System.Drawing.Rectangle
 
value = Analyze.GetBorders(img)
C# 
public static System.Drawing.Rectangle GetBorders( 
   ImImage img
)
JScript 
public static function GetBorders( 
   img : ImImage
) : System.Drawing.Rectangle;
Managed Extensions for C++ 
public: static System.Drawing.Rectangle GetBorders( 
   ImImage* img
) 
C++/CLI 
public:
static System.Drawing.Rectangle GetBorders( 
   ImImage^ img
) 

Parameters

img
ImImage to scan for potential borders

Return Value

Rectangle representing the image without borders.

Remarks

A solid black border or a clean fade into the side of a page will be identified as a border. If there is noise or texture on the side of the page or mixed in with the border it will not be identified as a border. This function differentiates whether data is text or a border based on texture. If the border has texture or excessive noise this function is not able to differentiate this from potential image or text information.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.