OcrBitmap class
Namespace: PdfNetStack.Ocr
Assembly: PdfNetStack.Ocr.dll
Package: PdfNetStack.Ocr
An 8 bit gray image: rows top to bottom, Width bytes each, 0 black.
public sealed class OcrBitmapInheritance
Constructors
Section titled “Constructors”OcrBitmap(int, int, byte[])
Section titled “ OcrBitmap(int, int, byte[])”Wraps gray pixels.
public OcrBitmap(int width, int height, byte[] pixels)Parameters
Section titled “Parameters”width int
Width in pixels.
height int
Height in pixels.
pixels byte[]
Width times height bytes.
Exceptions
Section titled “Exceptions”The pixel count does not match the size.
Properties
Section titled “Properties”Height
Section titled “ Height”Height in pixels.
public int Height { get; }Property Value
Section titled “Property Value”Pixels
Section titled “ Pixels”The pixels, one byte each.
public byte[] Pixels { get; }Property Value
Section titled “Property Value”byte[]
Width in pixels.
public int Width { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromPdfBitmap(PdfBitmap)
Section titled “ FromPdfBitmap(PdfBitmap)”Gray from a decoded PDF image: RGB is weighed by luma (ITU-R BT.601).
public static OcrBitmap FromPdfBitmap(PdfBitmap bitmap)Parameters
Section titled “Parameters”bitmap PdfBitmap
The decoded image.