Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Number of colors in the image

Component Version macOS Windows Linux Server iOS SDK
GraphicsMagick 2.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "GMImage.TotalColors"; ImageRef )   More


Parameter Description Example
ImageRef The image reference number. 1


Returns the number of colors in the image.


Number of colors in the image

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014

GMImage.Threshold - GMImage.Transform