LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetPalette Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrPage Interface : GetPalette Method



The GetPalette Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Gets the palette used by this page.

Syntax

Visual Basic (Declaration) 
Function GetPalette() As Byte()
Visual Basic (Usage)Copy Code
Dim instance As IOcrPage
Dim value() As Byte
 
value = instance.GetPalette()
C# 
byte[] GetPalette()
C++/CLI 
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 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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