 | OcrApiSetImage(Bitmap) Method |
Provide an image for Tesseract to recognize.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic void SetImage(
Bitmap bitmap
)
Public Sub SetImage (
bitmap As Bitmap
)
public:
void SetImage(
Bitmap^ bitmap
)
member SetImage :
bitmap : Bitmap -> unit public void SetImage(
Bitmap bitmap
)
function SetImage(bitmap);
Parameters
- bitmap Bitmap
- Source bitmap
RemarksFormat of image is as GetTextFromImage(Bitmap).
Does not copy the image buffer, or take ownership
The source image may be destroyed after Recognize is called,
either explicitly or implicitly via one of the Get* Text functions.
SetImage clears all recognition results, and sets the rectangle to the
full image, so it may be followed immediately by a GetUtf8Text, and it
will automatically perform recognition.
See Also