The GetPalette Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Gets the palette used by this page.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.For an example, refer to IOcrPage.
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
.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7