Captures the text font.
[C/C++]
HRESULT CaptureFontInfo(
INT_PTR hwnd,
INT x,
INT y,
ITextFont** ppFont
);
[Visual Basic]
object.CaptureFontInfo(
ByVal hwnd As INT_PTR,
ByVal x As Long,
ByVal y As Long,
ByRef ppFont As Object
)
[C#]
void ITextGRABSDK.CaptureFontInfo(
INT_PTR hwnd,
int x,
int y,
object ppFont
);
Parameters
- hwnd
- [in] target window handle
- x
- [in] target x-coordinate.
- y
- [in] target y-coordinate.
- ppFont
- [out] captured font information.
Return Value(s)
Return Value(s) | Definitions |
---|---|
S_OK | (0x00000000) Operation was completed successfully. |
E_POINTER | (0x80004003) The ppFont parameter is NULL. |
E_INVALIDARG | (0x80070057) The hwnd parameter is not a valid window handle. |
E_FAIL | (0x80004005) Error. |
FAILED(hr) | Appropriate error message. |