Table of Contents

Property ImageData

Namespace
LMKit.Extraction.Ocr
Assembly
LM-Kit.NET.dll

ImageData

Gets the raw image data as a PNG-encoded byte array.

public byte[] ImageData { get; }

Property Value

byte[]

Examples

// Send the PNG bytes to an external OCR API
byte[] pngData = parameters.ImageData;
Console.WriteLine($"Image data: {pngData.Length} bytes");

Remarks

The PNG bytes are generated lazily from the underlying Image on first access and then cached for subsequent reads.

Share