Image Magick
ImageMagick-6.1.1/magick/image.h
Go to the documentation of this file.00001
00002
00003
00004
#ifndef _MAGICK_IMAGE_H
00005
#define _MAGICK_IMAGE_H
00006
00007
#if defined(__cplusplus) || defined(c_plusplus)
00008
extern "C" {
00009
#endif
00010
00011 #define ColorMatch(p,q) ((MagickBooleanType) (((p)->red == (q)->red) && \
00012
((p)->green == (q)->green) && ((p)->blue == (q)->blue)))
00013 #define OpaqueOpacity ((Quantum) 0UL)
00014 #define PixelIntensity(pixel) ((MagickRealType) \
00015
(0.299*(pixel)->red+0.587*(pixel)->green+0.114*(pixel)->blue+0.5))
00016 #define PixelIntensityToQuantum(pixel) ((Quantum) \
00017
(0.299*(pixel)->red+0.587*(pixel)->green+0.114*(pixel)->blue+0.5))
00018 #define ScaleColor5to8(x) (((x) << 3) | ((x) >> 2))
00019 #define ScaleColor6to8(x) (((x) << 2) | ((x) >> 4))
00020 #define TransparentOpacity ((Quantum) MaxRGB)
00021
00022 typedef enum
00023 {
00024
UndefinedTransmitType,
00025
FileTransmitType,
00026
BlobTransmitType,
00027
StreamTransmitType,
00028
ImageTransmitType
00029 }
TransmitType;
00030
00031
extern MagickExport const PixelPacket
00032 *
AcquireImagePixels(
const Image *,
const long,
const long,
const unsigned long,
00033
const unsigned long,
ExceptionInfo *);
00034
00035
extern MagickExport ExceptionType
00036
CatchImageException(
Image *);
00037
00038
extern MagickExport Image
00039 *
AllocateImage(
const ImageInfo *),
00040 *
AppendImages(
const Image *,
const MagickBooleanType,
ExceptionInfo *),
00041 *
AverageImages(
const Image *,
ExceptionInfo *),
00042 *
CloneImage(
const Image *,
const unsigned long,
const unsigned long,
00043
const MagickBooleanType,
ExceptionInfo *),
00044 *
CombineImages(
const Image *,
const ChannelType,
ExceptionInfo *),
00045 *
DestroyImage(
Image *),
00046 *
GetImageClipMask(
const Image *,
ExceptionInfo *),
00047 *
ReferenceImage(
Image *);
00048
00049
extern MagickExport ImageInfo
00050 *
CloneImageInfo(
const ImageInfo *),
00051 *
DestroyImageInfo(
ImageInfo *);
00052
00053
extern MagickExport ImageType
00054
GetImageType(
const Image *,
ExceptionInfo *);
00055
00056
extern MagickExport IndexPacket
00057 *
GetIndexes(
const Image *);
00058
00059
extern MagickExport MagickBooleanType
00060
AllocateImageColormap(
Image *,
const unsigned long),
00061
AnimateImages(
const ImageInfo *,
Image *),
00062
ClipImage(
Image *),
00063
ClipPathImage(
Image *,
const char *,
const MagickBooleanType),
00064
GradientImage(
Image *,
const PixelPacket *,
const PixelPacket *),
00065
CycleColormapImage(
Image *,
const long),
00066
DescribeImage(
Image *,FILE *,
const MagickBooleanType),
00067
DisplayImages(
const ImageInfo *,
Image *),
00068
GetImageChannelExtrema(
const Image *,
const ChannelType,
unsigned long *,
00069
unsigned long *,
ExceptionInfo *),
00070
GetImageExtrema(
const Image *,
unsigned long *,
unsigned long *,
00071
ExceptionInfo *),
00072
GetImageChannelMean(
const Image *,
const ChannelType,
double *,
double *,
00073
ExceptionInfo *),
00074
GetImageMean(
const Image *,
double *,
double *,
ExceptionInfo *),
00075
GradientImage(
Image *,
const PixelPacket *,
const PixelPacket *),
00076
IsTaintImage(
const Image *),
00077
IsMagickConflict(
const char *),
00078
ListMagickInfo(FILE *,
ExceptionInfo *),
00079
PlasmaImage(
Image *,
const SegmentInfo *,
unsigned long,
unsigned long),
00080
SeparateImageChannel(
Image *,
const ChannelType),
00081
SetImageChannelDepth(
Image *,
const ChannelType,
const unsigned long),
00082
SetImageClipMask(
Image *,
const Image *),
00083
SetImageInfo(
ImageInfo *,
const MagickBooleanType,
ExceptionInfo *),
00084
SetImageDepth(
Image *,
const unsigned long),
00085
SetImageType(
Image *,
const ImageType),
00086
SignatureImage(
Image *),
00087
SortColormapByIntensity(
Image *),
00088
StripImage(
Image *),
00089
SyncImage(
Image *),
00090
SyncImagePixels(
Image *),
00091
TextureImage(
Image *,
const Image *);
00092
00093
extern MagickExport PixelPacket
00094
AcquireOnePixel(
const Image *,
const long,
const long,
ExceptionInfo *),
00095 *
GetImagePixels(
Image *,
const long,
const long,
const unsigned long,
00096
const unsigned long),
00097
GetOnePixel(
Image *,
const long,
const long),
00098 *
GetPixels(
const Image *),
00099 *
SetImagePixels(
Image *,
const long,
const long,
const unsigned long,
00100
const unsigned long);
00101
00102
extern MagickExport RectangleInfo
00103
GetImageBoundingBox(
const Image *,
ExceptionInfo *
exception);
00104
00105
extern MagickExport unsigned long
00106
GetImageChannelDepth(
const Image *,
const ChannelType,
ExceptionInfo *),
00107
GetImageDepth(
const Image *,
ExceptionInfo *),
00108
GetImageQuantumDepth(
const Image *,
const MagickBooleanType);
00109
00110
extern MagickExport void
00111
AllocateNextImage(
const ImageInfo *,
Image *),
00112
DestroyColorList(
void),
00113
DestroyImagePixels(
Image *),
00114
GetImageException(
Image *,
ExceptionInfo *),
00115
GetImageInfo(
ImageInfo *),
00116
ModifyImage(
Image **,
ExceptionInfo *),
00117
SetImage(
Image *,
const Quantum),
00118
SetImageOpacity(
Image *,
const Quantum);
00119
00120
#if defined(__cplusplus) || defined(c_plusplus)
00121
}
00122
#endif
00123
00124
#endif
Generated on Mon Oct 25 13:40:53 2004 for ImageMagick by
1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC