MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
colorspace.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore image colorspace methods.
17 */
18 #ifndef MAGICKCORE_COLORSPACE_H
19 #define MAGICKCORE_COLORSPACE_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef enum
26 {
28  RGBColorspace, /* Linear RGB colorspace */
29  GRAYColorspace, /* greyscale (non-linear) image (faked 1 channel) */
39  CMYKColorspace, /* negated linear RGB with black separated */
40  sRGBColorspace, /* Default: non-linear sRGB colorspace */
49  CMYColorspace, /* negated linear RGB colorspace */
52  LCHColorspace, /* alias for LCHuv */
54  LCHabColorspace, /* Cylindrical (Polar) Lab */
55  LCHuvColorspace, /* Cylindrical (Polar) Luv */
58  HSVColorspace, /* alias for HSB */
62  LinearGRAYColorspace /* greyscale (linear) image (faked 1 channel) */
64 
67 
75 
76 #if defined(__cplusplus) || defined(c_plusplus)
77 }
78 #endif
79 
80 #endif
MagickExport MagickBooleanType TransformRGBImage(Image *, const ColorspaceType)
Definition: colorspace.c:1699
MagickExport MagickBooleanType TransformImageColorspace(Image *, const ColorspaceType)
MagickExport MagickBooleanType SetImageMonochrome(Image *, ExceptionInfo *)
MagickExport MagickBooleanType RGBTransformImage(Image *, const ColorspaceType)
MagickExport MagickBooleanType SetImageGray(Image *, ExceptionInfo *)
ColorspaceType
Definition: colorspace.h:26
@ Rec601LumaColorspace
Definition: colorspace.h:44
@ LogColorspace
Definition: colorspace.h:48
@ Rec601YCbCrColorspace
Definition: colorspace.h:45
@ HSLColorspace
Definition: colorspace.h:42
@ YCbCrColorspace
Definition: colorspace.h:34
@ scRGBColorspace
Definition: colorspace.h:56
@ LabColorspace
Definition: colorspace.h:32
@ OHTAColorspace
Definition: colorspace.h:31
@ HSIColorspace
Definition: colorspace.h:57
@ LuvColorspace
Definition: colorspace.h:50
@ YDbDrColorspace
Definition: colorspace.h:60
@ HSBColorspace
Definition: colorspace.h:41
@ HCLColorspace
Definition: colorspace.h:51
@ YIQColorspace
Definition: colorspace.h:36
@ LMSColorspace
Definition: colorspace.h:53
@ YPbPrColorspace
Definition: colorspace.h:37
@ HCLpColorspace
Definition: colorspace.h:59
@ RGBColorspace
Definition: colorspace.h:28
@ LCHabColorspace
Definition: colorspace.h:54
@ YUVColorspace
Definition: colorspace.h:38
@ HWBColorspace
Definition: colorspace.h:43
@ CMYKColorspace
Definition: colorspace.h:39
@ CMYColorspace
Definition: colorspace.h:49
@ LCHuvColorspace
Definition: colorspace.h:55
@ UndefinedColorspace
Definition: colorspace.h:27
@ XYZColorspace
Definition: colorspace.h:33
@ Rec709LumaColorspace
Definition: colorspace.h:46
@ YCCColorspace
Definition: colorspace.h:35
@ Rec709YCbCrColorspace
Definition: colorspace.h:47
@ GRAYColorspace
Definition: colorspace.h:29
@ HSVColorspace
Definition: colorspace.h:58
@ TransparentColorspace
Definition: colorspace.h:30
@ sRGBColorspace
Definition: colorspace.h:40
@ LinearGRAYColorspace
Definition: colorspace.h:62
@ xyYColorspace
Definition: colorspace.h:61
@ LCHColorspace
Definition: colorspace.h:52
MagickExport ColorspaceType GetImageColorspaceType(const Image *, ExceptionInfo *)
Definition: colorspace.c:112
MagickExport MagickBooleanType SetImageColorspace(Image *, const ColorspaceType)
MagickBooleanType
Definition: magick-type.h:203
#define MagickExport
Definition: method-attribute.h:80
Definition: exception.h:103
Definition: image.h:153