2 Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickCore image methods.
18 #ifndef _MAGICKCORE_IMAGE_H
19 #define _MAGICKCORE_IMAGE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include <magick/color.h>
27 #define OpaqueOpacity ((Quantum) 0UL)
28 #define TransparentOpacity ((Quantum) QuantumRange)
32 UndefinedAlphaChannel,
34 BackgroundAlphaChannel,
36 DeactivateAlphaChannel,
39 ResetAlphaChannel, /* deprecated */
42 TransparentAlphaChannel
56 ColorSeparationMatteType,
58 PaletteBilevelMatteType
78 BottomRightOrientation,
79 BottomLeftOrientation,
82 RightBottomOrientation,
89 PixelsPerInchResolution,
90 PixelsPerCentimeterResolution
93 typedef struct _PrimaryInfo
101 typedef struct _SegmentInfo
112 UndefinedTransmitType,
119 typedef struct _ChromaticityInfo
128 #include "magick/blob.h"
129 #include "magick/colorspace.h"
130 #include "magick/cache-view.h"
131 #include "magick/color.h"
132 #include "magick/composite.h"
133 #include "magick/compress.h"
134 #include "magick/effect.h"
135 #include "magick/geometry.h"
136 #include "magick/layer.h"
137 #include "magick/monitor.h"
138 #include "magick/pixel.h"
139 #include "magick/profile.h"
140 #include "magick/quantum.h"
141 #include "magick/resample.h"
142 #include "magick/resize.h"
143 #include "magick/semaphore.h"
144 #include "magick/stream.h"
145 #include "magick/timer.h"
210 tile_info; /* deprecated */
214 blur, /* deprecated */
258 MagickProgressMonitor
264 *attributes; /* deprecated */
273 filename[MaxTextExtent],
274 magick_filename[MaxTextExtent],
275 magick[MaxTextExtent];
299 generic_profiles; /* this & ProfileInfo is deprecated */
309 InterpolatePixelMethod
313 black_point_compensation;
419 *attributes; /* deprecated */
424 MagickProgressMonitor
444 magick[MaxTextExtent],
445 unique[MaxTextExtent],
447 filename[MaxTextExtent];
453 *tile; /* deprecated */
456 subimage, /* deprecated */
457 subrange; /* deprecated */
460 pen; /* deprecated */
466 virtual_pixel_method;
478 extern MagickExport ExceptionType
479 CatchImageException(Image *);
481 extern MagickExport Image
482 *AcquireImage(const ImageInfo *),
483 *AppendImages(const Image *,const MagickBooleanType,ExceptionInfo *),
484 *AverageImages(const Image *,ExceptionInfo *),
485 *CloneImage(const Image *,const unsigned long,const unsigned long,
486 const MagickBooleanType,ExceptionInfo *),
487 *CombineImages(const Image *,const ChannelType,ExceptionInfo *),
488 *DestroyImage(Image *),
489 *GetImageClipMask(const Image *,ExceptionInfo *),
490 *GetImageMask(const Image *,ExceptionInfo *),
491 *NewMagickImage(const ImageInfo *,const unsigned long,const unsigned long,
492 const MagickPixelPacket *),
493 *ReferenceImage(Image *),
494 *SeparateImages(const Image *,const ChannelType,ExceptionInfo *);
496 extern MagickExport ImageInfo
497 *AcquireImageInfo(void),
498 *CloneImageInfo(const ImageInfo *),
499 *DestroyImageInfo(ImageInfo *);
501 extern MagickExport ImageType
502 GetImageType(const Image *,ExceptionInfo *);
504 extern MagickExport long
505 GetImageReferenceCount(Image *);
507 extern MagickExport MagickBooleanType
508 AcquireImageColormap(Image *,const unsigned long),
510 ClipImagePath(Image *,const char *,const MagickBooleanType),
511 CycleColormapImage(Image *,const long),
512 GetImageAlphaChannel(const Image *),
513 IsTaintImage(const Image *),
514 IsMagickConflict(const char *),
515 IsHighDynamicRangeImage(const Image *,ExceptionInfo *),
516 IsImageObject(const Image *),
517 ListMagickInfo(FILE *,ExceptionInfo *),
518 ModifyImage(Image **,ExceptionInfo *),
519 ResetImagePage(Image *,const char *),
520 SeparateImageChannel(Image *,const ChannelType),
521 SetImageAlphaChannel(Image *,const AlphaChannelType),
522 SetImageBackgroundColor(Image *),
523 SetImageClipMask(Image *,const Image *),
524 SetImageExtent(Image *,const unsigned long,const unsigned long),
525 SetImageInfo(ImageInfo *,const MagickBooleanType,ExceptionInfo *),
526 SetImageMask(Image *,const Image *),
527 SetImageOpacity(Image *,const Quantum),
528 SetImageStorageClass(Image *,const ClassType),
529 SetImageType(Image *,const ImageType),
530 SortColormapByIntensity(Image *),
533 TextureImage(Image *,const Image *);
535 extern MagickExport size_t
536 InterpretImageFilename(const ImageInfo *,Image *,const char *,int,char *);
538 extern MagickExport VirtualPixelMethod
539 GetImageVirtualPixelMethod(const Image *),
540 SetImageVirtualPixelMethod(const Image *,const VirtualPixelMethod);
542 extern MagickExport void
543 AcquireNextImage(const ImageInfo *,Image *),
544 DestroyImagePixels(Image *),
545 DisassociateImageStream(Image *),
546 GetImageException(Image *,ExceptionInfo *),
547 GetImageInfo(ImageInfo *),
548 SetImageInfoBlob(ImageInfo *,const void *,const size_t),
549 SetImageInfoFile(ImageInfo *,FILE *);
551 #if defined(__cplusplus) || defined(c_plusplus)