'Declaration
Public Function FindAnchor( _ ByVal ImageID As Integer, _ ByVal AnchorTemplateID As IntPtr, _ ByVal Mode As OMRMode, _ ByVal SearchLeft As Integer, _ ByVal SearchTop As Integer, _ ByVal SearchWidth As Integer, _ ByVal SearchHeight As Integer, _ ByRef PosLeft As Integer, _ ByRef PosTop As Integer, _ ByRef PosWidth As Integer, _ ByRef PosHeight As Integer, _ ByRef Accuracy As Double _ ) As GdPictureStatus
public GdPictureStatus FindAnchor( int ImageID, IntPtr AnchorTemplateID, OMRMode Mode, int SearchLeft, int SearchTop, int SearchWidth, int SearchHeight, ref int PosLeft, ref int PosTop, ref int PosWidth, ref int PosHeight, ref double Accuracy )
public function FindAnchor( ImageID: Integer; AnchorTemplateID: IntPtr; Mode: OMRMode; SearchLeft: Integer; SearchTop: Integer; SearchWidth: Integer; SearchHeight: Integer; var PosLeft: Integer; var PosTop: Integer; var PosWidth: Integer; var PosHeight: Integer; var Accuracy: Double ): GdPictureStatus;
public function FindAnchor( ImageID : int, AnchorTemplateID : IntPtr, Mode : OMRMode, SearchLeft : int, SearchTop : int, SearchWidth : int, SearchHeight : int, PosLeft : int, PosTop : int, PosWidth : int, PosHeight : int, Accuracy : double ) : GdPictureStatus;
public: GdPictureStatus FindAnchor( int ImageID, IntPtr AnchorTemplateID, OMRMode Mode, int SearchLeft, int SearchTop, int SearchWidth, int SearchHeight, ref int PosLeft, ref int PosTop, ref int PosWidth, ref int PosHeight, ref double Accuracy )
public: GdPictureStatus FindAnchor( int ImageID, IntPtr AnchorTemplateID, OMRMode Mode, int SearchLeft, int SearchTop, int SearchWidth, int SearchHeight, int% PosLeft, int% PosTop, int% PosWidth, int% PosHeight, double% Accuracy )
Parameters
- ImageID
- GdPicture image identifier.
- AnchorTemplateID
- An Anchor Template Identifier returned by the CreateAnchorTemplate method.
- Mode
- A member of the OMRMode enumeration. FavorSpeed is suggested since there is almost no accuracy difference between FavorSpeed and FavorQuality.
- SearchLeft
- The left position, in pixel, (0-based), of the area to search the anchor template.
- SearchTop
- The top position, in pixel, (0-based), of the area to search the anchor template.
- SearchWidth
- The width, in pixel, of the area to search the anchor template.
- SearchHeight
- The height, in pixel, of the area to search the anchor template.
- PosLeft
- Output parameter. Returns the left position, in pixel, (0-based), of the detected anchor template.
- PosTop
- Output parameter. Returns the top position, in pixel, (0-based), of the detected anchor template.
- PosWidth
- Output parameter. Returns the width, in pixel, of the detected anchor template.
- PosHeight
- Output parameter. Returns the height, in pixel, of the detected anchor template.
- Accuracy
- Output parameter. Accuracy in percentage [0 - 100].
Return Value
A member of the GdPictureStatus enumeration.