color.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 color methods.
00017 */
00018 #ifndef MAGICKCORE_COLOR_H
00019 #define MAGICKCORE_COLOR_H
00020 
00021 #include "magick/pixel.h"
00022 #include "magick/exception.h"
00023 
00024 #if defined(__cplusplus) || defined(c_plusplus)
00025 extern "C" {
00026 #endif
00027 
00028 typedef enum
00029 {
00030   UndefinedCompliance,
00031   NoCompliance = 0x0000,
00032   CSSCompliance = 0x0001,
00033   SVGCompliance = 0x0001,
00034   X11Compliance = 0x0002,
00035   XPMCompliance = 0x0004,
00036   MVGCompliance = 0x0008,
00037   AllCompliance = 0x7fffffff
00038 } ComplianceType;
00039 
00040 typedef struct _ColorInfo
00041 {
00042   char
00043     *path,
00044     *name;
00045 
00046   ComplianceType
00047     compliance;
00048 
00049   MagickPixelPacket
00050     color;
00051 
00052   MagickBooleanType
00053     exempt,
00054     stealth;
00055 
00056   struct _ColorInfo
00057     *previous,
00058     *next;  /* deprecated, use GetColorInfoList() */
00059 
00060   size_t
00061     signature;
00062 } ColorInfo;
00063 
00064 typedef struct _ErrorInfo
00065 {
00066   double
00067     mean_error_per_pixel,
00068     normalized_mean_error,
00069     normalized_maximum_error;
00070 } ErrorInfo;
00071 
00072 extern MagickExport char
00073   **GetColorList(const char *,size_t *,ExceptionInfo *);
00074 
00075 extern MagickExport const ColorInfo
00076   *GetColorInfo(const char *,ExceptionInfo *),
00077   **GetColorInfoList(const char *,size_t *,ExceptionInfo *);
00078 
00079 extern MagickExport MagickBooleanType
00080   ColorComponentGenesis(void),
00081   IsColorSimilar(const Image *,const PixelPacket *,const PixelPacket *),
00082   IsImageSimilar(const Image *,const Image *,ssize_t *x,ssize_t *y,
00083     ExceptionInfo *),
00084   IsMagickColorSimilar(const MagickPixelPacket *,const MagickPixelPacket *),
00085   IsOpacitySimilar(const Image *,const PixelPacket *,const PixelPacket *),
00086   ListColorInfo(FILE *,ExceptionInfo *),
00087   QueryColorCompliance(const char *,const ComplianceType,PixelPacket *,
00088     ExceptionInfo *),
00089   QueryColorDatabase(const char *,PixelPacket *,ExceptionInfo *),
00090   QueryColorname(const Image *,const PixelPacket *,const ComplianceType,char *,
00091     ExceptionInfo *),
00092   QueryMagickColorCompliance(const char *,const ComplianceType,
00093     MagickPixelPacket *,ExceptionInfo *),
00094   QueryMagickColor(const char *,MagickPixelPacket *,ExceptionInfo *),
00095   QueryMagickColorname(const Image *,const MagickPixelPacket *,
00096     const ComplianceType,char *,ExceptionInfo *);
00097 
00098 extern MagickExport void
00099   ColorComponentTerminus(void),
00100   ConcatenateColorComponent(const MagickPixelPacket *,const ChannelType,
00101     const ComplianceType,char *),
00102   GetColorTuple(const MagickPixelPacket *,const MagickBooleanType,char *);
00103 
00104 #if defined(__cplusplus) || defined(c_plusplus)
00105 }
00106 #endif
00107 
00108 #endif

Generated on 24 Feb 2020 for MagickCore by  doxygen 1.6.1