colorspace.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore image colorspace methods.
00017 */
00018 #ifndef MAGICKCORE_COLORSPACE_H
00019 #define MAGICKCORE_COLORSPACE_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 typedef enum
00026 {
00027   UndefinedColorspace,
00028   CMYColorspace,           /* negated linear RGB colorspace */
00029   CMYKColorspace,          /* CMY with Black separation */
00030   GRAYColorspace,          /* Single Channel greyscale (non-linear) image */
00031   HCLColorspace,
00032   HCLpColorspace,
00033   HSBColorspace,
00034   HSIColorspace,
00035   HSLColorspace,
00036   HSVColorspace,           /* alias for HSB */
00037   HWBColorspace,
00038   LabColorspace,
00039   LCHColorspace,           /* alias for LCHuv */
00040   LCHabColorspace,         /* Cylindrical (Polar) Lab */
00041   LCHuvColorspace,         /* Cylindrical (Polar) Luv */
00042   LogColorspace,
00043   LMSColorspace,
00044   LuvColorspace,
00045   OHTAColorspace,
00046   Rec601YCbCrColorspace,
00047   Rec709YCbCrColorspace,
00048   RGBColorspace,           /* Linear RGB colorspace */
00049   scRGBColorspace,         /* ??? */
00050   sRGBColorspace,          /* Default: non-linear sRGB colorspace */
00051   TransparentColorspace,
00052   xyYColorspace,
00053   XYZColorspace,           /* IEEE Color Reference colorspace */
00054   YCbCrColorspace,
00055   YCCColorspace,
00056   YDbDrColorspace,
00057   YIQColorspace,
00058   YPbPrColorspace,
00059   YUVColorspace,
00060   LinearGRAYColorspace,     /* Single Channel greyscale (linear) image */
00061   JzazbzColorspace
00062 } ColorspaceType;
00063 
00064 extern MagickExport ColorspaceType
00065   GetImageColorspaceType(const Image *,ExceptionInfo *);
00066 
00067 extern MagickExport MagickBooleanType
00068   SetImageColorspace(Image *,const ColorspaceType,ExceptionInfo *),
00069   SetImageGray(Image *,ExceptionInfo *),
00070   SetImageMonochrome(Image *,ExceptionInfo *),
00071   TransformImageColorspace(Image *,const ColorspaceType,ExceptionInfo *);
00072 
00073 #if defined(__cplusplus) || defined(c_plusplus)
00074 }
00075 #endif
00076 
00077 #endif

Generated on 8 Jun 2020 for MagickCore by  doxygen 1.6.1