 | OcrPixFromBitmap Method |
Creates new instance of OcrPix class.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic static OcrPix FromBitmap(
Bitmap image
)
Public Shared Function FromBitmap (
image As Bitmap
) As OcrPix
public:
static OcrPix^ FromBitmap(
Bitmap^ image
)
static member FromBitmap :
image : Bitmap -> OcrPix public static OcrPix FromBitmap(
Bitmap image
)
Patagames.Ocr.OcrPix.FromBitmap = function(image);
Parameters
- image Bitmap
- The image
Return Value
OcrPixThe new instance of OcrPix class.
Exceptions
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