AtalaImageCountColors Method |
Count the number of unique colors in this
AtalaImage.
Namespace:
Atalasoft.Imaging
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public long CountColors()
Public Function CountColors As Long
Return Value
Type:
Int64The number of unique colors in this
AtalaImage.
Remarks For colormapped images, this method could return a different number of colors
then what's stored in the
Colors property. That is because this method actually
loops through each pixel in the image to count the unique number of colors. However these
colors might occupy more then the first x colors in the palette.
See Also