Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.GetColorSpace
Queries the Image Color Space
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 2.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
Result
Returns the color space type as number.
Description
Queries the Image Color SpaceUndefinedColorspace = 0, RGBColorspace = 1 (Plain old RGB colorspace), GRAYColorspace = 2 (Plain old full-range grayscale), TransparentColorspace = 3 (RGB but preserve matte channel during quantize), OHTAColorspace = 4, XYZColorspace = 5 (CIE XYZ), YCCColorspace = 6 (Kodak PhotoCD PhotoYCC), YIQColorspace = 7, YPbPrColorspace = 8, YUVColorspace = 9, CMYKColorspace = 10 (Cyan, magenta, yellow, black, alpha), sRGBColorspace = 11 (Kodak PhotoCD sRGB), HSLColorspace = 12 (Hue, saturation, luminosity), HWBColorspace = 13 (Hue, whiteness, blackness), LABColorspace = 14 (LAB colorspace not supported yet other than via lcms), CineonLogRGBColorspace = 15 (RGB data with Cineon Log scaling, 2.048 density range), Rec601LumaColorspace = 16 (Luma (Y) according to ITU-R 601), Rec601YCbCrColorspace = 17 (YCbCr according to ITU-R 601), Rec709LumaColorspace = 18 (Luma (Y) according to ITU-R 709), Rec709YCbCrColorspace = 19 (YCbCr according to ITU-R 709)
Examples
Shows color space for image:
Set Variable [ $image ; Value: MBS("GMImage.NewFromFile"; "/Users/cs/Desktop/image2.png") ]
Set Variable [ $value ; Value: MBS("GMImage.GetColorSpace"; $image) ]
Show Custom Dialog [ "ColorSpace" ; $value ]
Set Variable [ $r ; Value: MBS("GMImage.Release"; $image) ]
See also
- GMImage.GetColorFuzz
- GMImage.GetcolorMap
- GMImage.GetColorMapSize
- GMImage.New
- GMImage.NewFromFile
- GMImage.Release
- GMImage.SetColorMapSize
- GMImage.SetColorSpace
Created 18th August 2014, last changed 17th April 2019
GMImage.GetColorMapSize - GMImage.GetComment
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins