Click or drag to resize

OcrPixFromBitmap Method

Creates new instance of OcrPix class.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public static OcrPix FromBitmap(
	Bitmap image
)

Parameters

image  Bitmap
The image

Return Value

OcrPix
The new instance of OcrPix class.
Exceptions
ExceptionCondition
UnsupportedFormatExeptionThe given bpp is not supported.
OcrExceptionUnable to create image for some reason.
Remarks
Greyscale of 8 and color of 24 or 32 bits per pixel may be given. Palette color images will not work properly and must be converted to 24 bit. Binary images of 1 bit per pixel may also be given but they must be byte packed with the MSB of the first byte being the first pixel, and a 1 represents WHITE. For binary images set bytes_per_pixel= 0.
See Also