Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetPalette Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrPage Interface : GetPalette Method



Gets the palette used by this page.

Syntax

Visual Basic (Declaration) 
Overridable Function GetPalette() As Byte()
Visual Basic (Usage)Copy Code
Dim instance As IOcrPage
Dim value() As Byte
 
value = instance.GetPalette()
C# 
virtual byte[] GetPalette()
C++/CLI 
virtual array<byte>^ GetPalette(); 

Return Value

An array of bytes that contain the palette used by this page or a null (Nothing in Visual Basic) if the page does not contain a palette.

Example

For an example, refer to IOcrPage.

Remarks

The page contains a palette if the value of BitsPerPixel is less than or equal to 8.

The palette returned from this method is an array of bytes in the following format: Red0, Green0, Blue0, Red1, Green1, Blue1 ... RedN, GreenN, BlueN.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

GetPalette requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features