Class PixColormap
Inheritance
System.Object
PixColormap
Implements
System.IDisposable
Assembly: IronOcr.dll
Syntax
public sealed class PixColormap : Object, IDisposable
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Depth
Declaration
public int Depth { get; }
Property Value
Type |
Description |
System.Int32 |
|
FreeCount
Declaration
public int FreeCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Declaration
public PixColor this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
AddBlackOrWhite(Int32, out Int32)
Declaration
public bool AddBlackOrWhite(int color, out int index)
Parameters
Type |
Name |
Description |
System.Int32 |
color |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
AddColor(PixColor)
Declaration
public bool AddColor(PixColor color)
Parameters
Returns
Type |
Description |
System.Boolean |
|
AddNearestColor(PixColor, out Int32)
Declaration
public bool AddNearestColor(PixColor color, out int index)
Parameters
Type |
Name |
Description |
PixColor |
color |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
AddNewColor(PixColor, out Int32)
Declaration
public bool AddNewColor(PixColor color, out int index)
Parameters
Type |
Name |
Description |
PixColor |
color |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
Clear()
Declaration
Create(Int32)
Declaration
public static PixColormap Create(int depth)
Parameters
Type |
Name |
Description |
System.Int32 |
depth |
|
Returns
CreateLinear(Int32, Boolean, Boolean)
Declaration
public static PixColormap CreateLinear(int depth, bool firstIsBlack, bool lastIsWhite)
Parameters
Type |
Name |
Description |
System.Int32 |
depth |
|
System.Boolean |
firstIsBlack |
|
System.Boolean |
lastIsWhite |
|
Returns
CreateLinear(Int32, Int32)
Declaration
public static PixColormap CreateLinear(int depth, int levels)
Parameters
Type |
Name |
Description |
System.Int32 |
depth |
|
System.Int32 |
levels |
|
Returns
Dispose()
Declaration
IsUsableColor(PixColor)
Declaration
public bool IsUsableColor(PixColor color)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SetBlackOrWhite(Boolean, Boolean)
Declaration
public bool SetBlackOrWhite(bool setBlack, bool setWhite)
Parameters
Type |
Name |
Description |
System.Boolean |
setBlack |
|
System.Boolean |
setWhite |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IDisposable