This method retrieves the number of 0 palette and 1 palette pixels from a 1 bit color image.

Overloaded Method

As Integer:

[Visual Basic] Public Function GetOneBitPaletteCount(Pal0 As Integer, Pal1 As Integer, GetImg As Image) As Boolean
[C#] public bool GetOneBitPaletteCount(ref int Pal0, ref int Pal1, Image GetImg);


As Long:

[Visual Basic] Public Function GetOneBitPaletteCount(Pal0 As Long, Pal1 As Long, GetImg As Image) As Boolean
[C#] public bool GetOneBitPaletteCount(ref long Pal0, ref long Pal1, Image GetImg);

Parameters

Pal0
   The number of 0 pixels retrieved from a 1 bit color image palette

Pal1
   The number of 1 pixels retrieved from a 1 bit color image palette

GetImg
   The raster image

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The GetOneBitPaletteCount method retrieves the number of 0 palette and 1 palette pixels from a 1 bit color image. This method is enabled for 1 bit color images only.

When the GetImg parameter contains a valid image

The image data that the GetImg parameter refers to will be processed.

When the GetImg parameter contains 0

The image data determined by the LayerNumber property will be processed. If the LayerNumber property is -1 (the base image) then the image data referred to by the Image property will be processed. If the value of the LayerNumber property is between 0 and 99 then the image data referred to by the Layer(LayerNumber).Imgae property will be processed.

For Palette color, please refer to the GetPalette method.

See Also

ImageKit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation