Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets the Image class (DirectClass=1 or PseudoClass=2)

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes

MBS( "GMImage.SetClassType"; ImageRef; classtype )


Parameter Description Example value
ImageRef The image reference number. 1
classtype The class type number 2


Returns "OK" on success.


Sets the Image class (DirectClass=1 or PseudoClass=2)
setting a DirectClass image to PseudoClass will result in the loss of color information if the number of colors in the image is greater than the maximum palette size (either 256 or 65536 entries depending on the value of QuantumDepth when ImageMagick was built).

See also

GMImage.SetCacheThreshold   -   GMImage.SetColorFuzz

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins