All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

GMImage.SetClassType

Component: GraphicsMagick
Mac OS X: Works
Windows: Works

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

Parameters

Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1
classtype The class type number 2

Result

Returns "OK" on success.

Description

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).

Feedback: Report problem or ask question.