HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Constants

← compositeImage   contrastImage →
These are all of the constants available in the Imagick class.
Please note, the values can change from one version of ImageMagick to another.

ALIGN_CENTER2
ALIGN_LEFT1
ALIGN_RIGHT3
ALIGN_UNDEFINED0
ALPHACHANNEL_ACTIVATE1
ALPHACHANNEL_ASSOCIATE13
ALPHACHANNEL_BACKGROUND2
ALPHACHANNEL_COPY3
ALPHACHANNEL_DEACTIVATE4
ALPHACHANNEL_DISSOCIATE14
ALPHACHANNEL_EXTRACT5
ALPHACHANNEL_FLATTEN11
ALPHACHANNEL_OPAQUE6
ALPHACHANNEL_REMOVE12
ALPHACHANNEL_RESET7
ALPHACHANNEL_SET8
ALPHACHANNEL_SHAPE9
ALPHACHANNEL_TRANSPARENT10
ALPHACHANNEL_UNDEFINED0
CHANNEL_ALL134217727
CHANNEL_ALPHA8
CHANNEL_BLACK32
CHANNEL_BLUE4
CHANNEL_COMPOSITES47
CHANNEL_CYAN1
CHANNEL_DEFAULT134217719
CHANNEL_GRAY1
CHANNEL_GRAY_CHANNELS128
CHANNEL_GREEN2
CHANNEL_INDEX32
CHANNEL_MAGENTA2
CHANNEL_MATTE8
CHANNEL_OPACITY8
CHANNEL_RED1
CHANNEL_RGBA15
CHANNEL_RGBS128
CHANNEL_SYNC256
CHANNEL_TRUEALPHA64
CHANNEL_UNDEFINED0
CHANNEL_YELLOW4
COLORSPACE_CMY22
COLORSPACE_CMYK12
COLORSPACE_GRAY2
COLORSPACE_HCL24
COLORSPACE_HCLP32
COLORSPACE_HSB14
COLORSPACE_HSI30
COLORSPACE_HSL15
COLORSPACE_HSV31
COLORSPACE_HWB16
COLORSPACE_LAB5
COLORSPACE_LCH25
COLORSPACE_LCHAB27
COLORSPACE_LCHUV28
COLORSPACE_LINEARGRAY35
COLORSPACE_LMS26
COLORSPACE_LOG21
COLORSPACE_LUV23
COLORSPACE_OHTA4
COLORSPACE_REC601LUMA17
COLORSPACE_REC601YCBCR18
COLORSPACE_REC709LUMA19
COLORSPACE_REC709YCBCR20
COLORSPACE_RGB1
COLORSPACE_SCRGB29
COLORSPACE_SRGB13
COLORSPACE_TRANSPARENT3
COLORSPACE_UNDEFINED0
COLORSPACE_XYY34
COLORSPACE_XYZ6
COLORSPACE_YCBCR7
COLORSPACE_YCC8
COLORSPACE_YDBDR33
COLORSPACE_YIQ9
COLORSPACE_YPBPR10
COLORSPACE_YUV11
COLOR_ALPHA19
COLOR_BLACK11
COLOR_BLUE12
COLOR_CYAN13
COLOR_FUZZ20
COLOR_GREEN14
COLOR_MAGENTA17
COLOR_OPACITY18
COLOR_RED15
COLOR_YELLOW16
COMPOSITE_ADD2
COMPOSITE_ATOP3
COMPOSITE_BLEND4
COMPOSITE_BLUR57
COMPOSITE_BUMPMAP5
COMPOSITE_CHANGEMASK6
COMPOSITE_CLEAR7
COMPOSITE_COLORBURN8
COMPOSITE_COLORDODGE9
COMPOSITE_COLORIZE10
COMPOSITE_COPY13
COMPOSITE_COPYBLACK11
COMPOSITE_COPYBLUE12
COMPOSITE_COPYCYAN14
COMPOSITE_COPYGREEN15
COMPOSITE_COPYMAGENTA16
COMPOSITE_COPYOPACITY17
COMPOSITE_COPYRED18
COMPOSITE_COPYYELLOW19
COMPOSITE_DARKEN20
COMPOSITE_DARKENINTENSITY66
COMPOSITE_DEFAULT40
COMPOSITE_DIFFERENCE26
COMPOSITE_DISPLACE27
COMPOSITE_DISSOLVE28
COMPOSITE_DISTORT56
COMPOSITE_DIVIDE55
COMPOSITE_DIVIDEDST55
COMPOSITE_DIVIDESRC64
COMPOSITE_DST22
COMPOSITE_DSTATOP21
COMPOSITE_DSTIN23
COMPOSITE_DSTOUT24
COMPOSITE_DSTOVER25
COMPOSITE_EXCLUSION29
COMPOSITE_HARDLIGHT30
COMPOSITE_HARDMIX68
COMPOSITE_HUE31
COMPOSITE_IN32
COMPOSITE_LIGHTEN33
COMPOSITE_LIGHTENINTENSITY67
COMPOSITE_LINEARBURN62
COMPOSITE_LINEARDODGE61
COMPOSITE_LINEARLIGHT34
COMPOSITE_LUMINIZE35
COMPOSITE_MATHEMATICS63
COMPOSITE_MINUS36
COMPOSITE_MINUSDST36
COMPOSITE_MINUSSRC65
COMPOSITE_MODULATE37
COMPOSITE_MODULUSADD2
COMPOSITE_MODULUSSUBTRACT52
COMPOSITE_MULTIPLY38
COMPOSITE_NO1
COMPOSITE_OUT39
COMPOSITE_OVER40
COMPOSITE_OVERLAY41
COMPOSITE_PEGTOPLIGHT58
COMPOSITE_PINLIGHT60
COMPOSITE_PLUS42
COMPOSITE_REPLACE43
COMPOSITE_SATURATE44
COMPOSITE_SCREEN45
COMPOSITE_SOFTLIGHT46
COMPOSITE_SRC48
COMPOSITE_SRCATOP47
COMPOSITE_SRCIN49
COMPOSITE_SRCOUT50
COMPOSITE_SRCOVER51
COMPOSITE_STEREO69
COMPOSITE_SUBTRACT52
COMPOSITE_THRESHOLD53
COMPOSITE_UNDEFINED0
COMPOSITE_VIVIDLIGHT59
COMPOSITE_XOR54
COMPRESSION_B4417
COMPRESSION_B44A18
COMPRESSION_BZIP2
COMPRESSION_DXT13
COMPRESSION_DXT34
COMPRESSION_DXT55
COMPRESSION_FAX6
COMPRESSION_GROUP47
COMPRESSION_JBIG120
COMPRESSION_JBIG221
COMPRESSION_JPEG8
COMPRESSION_JPEG20009
COMPRESSION_LOSSLESSJPEG10
COMPRESSION_LZMA19
COMPRESSION_LZW11
COMPRESSION_NO1
COMPRESSION_PIZ15
COMPRESSION_PXR2416
COMPRESSION_RLE12
COMPRESSION_UNDEFINED0
COMPRESSION_ZIP13
COMPRESSION_ZIPS14
DECORATION_LINETHROUGH4
DECORATION_LINETROUGH4
DECORATION_NO1
DECORATION_OVERLINE3
DECORATION_UNDERLINE2
DIRECTION_LEFT_TO_RIGHT2
DIRECTION_RIGHT_TO_LEFT1
DISPOSE_BACKGROUND2
DISPOSE_NONE1
DISPOSE_PREVIOUS3
DISPOSE_UNDEFINED0
DISPOSE_UNRECOGNIZED0
DISTORTION_AFFINE1
DISTORTION_AFFINEPROJECTION2
DISTORTION_ARC9
DISTORTION_BARREL14
DISTORTION_BARRELINVERSE15
DISTORTION_BILINEAR6
DISTORTION_BILINEARFORWARD6
DISTORTION_BILINEARREVERSE7
DISTORTION_CYLINDER2PLANE12
DISTORTION_DEPOLAR11
DISTORTION_PERSPECTIVE4
DISTORTION_PERSPECTIVEPROJECTION5
DISTORTION_PLANE2CYLINDER13
DISTORTION_POLAR10
DISTORTION_POLYNOMIAL8
DISTORTION_RESIZE17
DISTORTION_SCALEROTATETRANSLATE3
DISTORTION_SENTINEL18
DISTORTION_SHEPARDS16
DISTORTION_UNDEFINED0
DITHERMETHOD_FLOYDSTEINBERG3
DITHERMETHOD_NO1
DITHERMETHOD_RIEMERSMA2
DITHERMETHOD_UNDEFINED0
EVALUATE_ABS28
EVALUATE_ADD1
EVALUATE_ADDMODULUS26
EVALUATE_AND2
EVALUATE_COSINE24
EVALUATE_DIVIDE3
EVALUATE_EXPONENTIAL29
EVALUATE_GAUSSIANNOISE18
EVALUATE_IMPULSENOISE19
EVALUATE_LAPLACIANNOISE20
EVALUATE_LEFTSHIFT4
EVALUATE_LOG14
EVALUATE_MAX5
EVALUATE_MEAN27
EVALUATE_MEDIAN30
EVALUATE_MIN6
EVALUATE_MULTIPLICATIVENOISE21
EVALUATE_MULTIPLY7
EVALUATE_OR8
EVALUATE_POISSONNOISE22
EVALUATE_POW13
EVALUATE_RIGHTSHIFT9
EVALUATE_ROOT_MEAN_SQUARE32
EVALUATE_SET10
EVALUATE_SINE25
EVALUATE_SUBTRACT11
EVALUATE_SUM31
EVALUATE_THRESHOLD15
EVALUATE_THRESHOLDBLACK16
EVALUATE_THRESHOLDWHITE17
EVALUATE_UNDEFINED0
EVALUATE_UNIFORMNOISE23
EVALUATE_XOR12
FILLRULE_EVENODD1
FILLRULE_NONZERO2
FILLRULE_UNDEFINED0
FILTER_BARTLETT20
FILTER_BESSEL13
FILTER_BLACKMAN7
FILTER_BOHMAN19
FILTER_BOX2
FILTER_CATROM11
FILTER_COSINE28
FILTER_CUBIC10
FILTER_GAUSSIAN8
FILTER_HAMMING6
FILTER_HANNING5
FILTER_HERMITE4
FILTER_JINC13
FILTER_KAISER16
FILTER_LAGRANGE21
FILTER_LANCZOS22
FILTER_LANCZOS224
FILTER_LANCZOS2SHARP25
FILTER_LANCZOSRADIUS30
FILTER_LANCZOSSHARP23
FILTER_MITCHELL12
FILTER_PARZEN18
FILTER_POINT1
FILTER_QUADRATIC9
FILTER_ROBIDOUX26
FILTER_ROBIDOUXSHARP27
FILTER_SENTINEL31
FILTER_SINC14
FILTER_SINCFAST15
FILTER_SPLINE29
FILTER_TRIANGLE3
FILTER_UNDEFINED0
FILTER_WELSH17
FUNCTION_ARCSIN3
FUNCTION_ARCTAN4
FUNCTION_POLYNOMIAL1
FUNCTION_SINUSOID2
FUNCTION_UNDEFINED0
GRAVITY_CENTER5
GRAVITY_EAST6
GRAVITY_FORGET0
GRAVITY_NORTH2
GRAVITY_NORTHEAST3
GRAVITY_NORTHWEST1
GRAVITY_SOUTH8
GRAVITY_SOUTHEAST9
GRAVITY_SOUTHWEST7
GRAVITY_STATIC10
GRAVITY_WEST4
IMAGICK_EXTNUM30700
IMAGICK_EXTVER@PACKAGE_VERSION@
IMGTYPE_BILEVEL1
IMGTYPE_COLORSEPARATION8
IMGTYPE_COLORSEPARATIONMATTE9
IMGTYPE_GRAYSCALE2
IMGTYPE_GRAYSCALEMATTE3
IMGTYPE_OPTIMIZE10
IMGTYPE_PALETTE4
IMGTYPE_PALETTEBILEVELMATTE11
IMGTYPE_PALETTEMATTE5
IMGTYPE_TRUECOLOR6
IMGTYPE_TRUECOLORMATTE7
IMGTYPE_UNDEFINED0
INTERLACE_GIF5
INTERLACE_JPEG6
INTERLACE_LINE2
INTERLACE_NO1
INTERLACE_PARTITION4
INTERLACE_PLANE3
INTERLACE_PNG7
INTERLACE_UNDEFINED0
INTERPOLATE_AVERAGE1
INTERPOLATE_AVERAGE_1610
INTERPOLATE_AVERAGE_99
INTERPOLATE_BACKGROUND_COLOR12
INTERPOLATE_BICUBIC2
INTERPOLATE_BILINEAR3
INTERPOLATE_BLEND11
INTERPOLATE_CATROM13
INTERPOLATE_FILTER4
INTERPOLATE_INTEGER5
INTERPOLATE_MESH6
INTERPOLATE_NEARESTNEIGHBOR7
INTERPOLATE_SPLINE8
INTERPOLATE_UNDEFINED0
KERNEL_BINOMIAL37
KERNEL_BLUR5
KERNEL_CHEBYSHEV32
KERNEL_COMET6
KERNEL_COMPASS12
KERNEL_CONVEX_HULL29
KERNEL_CORNERS24
KERNEL_CROSS20
KERNEL_DIAGONALS25
KERNEL_DIAMOND14
KERNEL_DIFFERENCE_OF_GAUSSIANS3
KERNEL_DISK18
KERNEL_EDGES23
KERNEL_EUCLIDEAN35
KERNEL_FREI_CHEN9
KERNEL_GAUSSIAN2
KERNEL_KIRSCH13
KERNEL_LAPLACIAN7
KERNEL_LAPLACIAN_OF_GAUSSIANS4
KERNEL_LINE_ENDS26
KERNEL_LINE_JUNCTIONS27
KERNEL_MANHATTAN33
KERNEL_OCTAGON17
KERNEL_OCTAGONAL34
KERNEL_PEAKS22
KERNEL_PLUS19
KERNEL_PREWITT11
KERNEL_RECTANGLE16
KERNEL_RIDGES28
KERNEL_RING21
KERNEL_ROBERTS10
KERNEL_SKELETON31
KERNEL_SOBEL8
KERNEL_SQUARE15
KERNEL_THIN_SE30
KERNEL_UNITY1
KERNEL_USER_DEFINED36
LAYERMETHOD_COALESCE1
LAYERMETHOD_COMPAREANY2
LAYERMETHOD_COMPARECLEAR3
LAYERMETHOD_COMPAREOVERLAY4
LAYERMETHOD_COMPOSITE12
LAYERMETHOD_DISPOSE5
LAYERMETHOD_FLATTEN14
LAYERMETHOD_MERGE13
LAYERMETHOD_MOSAIC15
LAYERMETHOD_OPTIMIZE6
LAYERMETHOD_OPTIMIZEIMAGE7
LAYERMETHOD_OPTIMIZEPLUS8
LAYERMETHOD_OPTIMIZETRANS9
LAYERMETHOD_REMOVEDUPS10
LAYERMETHOD_REMOVEZERO11
LAYERMETHOD_TRIMBOUNDS16
LAYERMETHOD_UNDEFINED0
LINECAP_BUTT1
LINECAP_ROUND2
LINECAP_SQUARE3
LINECAP_UNDEFINED0
LINEJOIN_BEVEL3
LINEJOIN_MITER1
LINEJOIN_ROUND2
LINEJOIN_UNDEFINED0
METRIC_ABSOLUTEERRORMETRIC1
METRIC_FUZZERROR9
METRIC_MEANABSOLUTEERROR2
METRIC_MEANERRORPERPIXELMETRIC3
METRIC_MEANSQUAREERROR4
METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC8
METRIC_PEAKABSOLUTEERROR5
METRIC_PEAKSIGNALTONOISERATIO6
METRIC_PERCEPTUALHASH_ERROR255
METRIC_ROOTMEANSQUAREDERROR7
METRIC_UNDEFINED0
MONTAGEMODE_CONCATENATE3
MONTAGEMODE_FRAME1
MONTAGEMODE_UNFRAME2
MORPHOLOGY_BOTTOM_HAT17
MORPHOLOGY_CLOSE9
MORPHOLOGY_CLOSE_INTENSITY11
MORPHOLOGY_CONVOLVE1
MORPHOLOGY_CORRELATE2
MORPHOLOGY_DILATE4
MORPHOLOGY_DILATE_INTENSITY6
MORPHOLOGY_DISTANCE7
MORPHOLOGY_EDGE15
MORPHOLOGY_EDGE_IN13
MORPHOLOGY_EDGE_OUT14
MORPHOLOGY_ERODE3
MORPHOLOGY_ERODE_INTENSITY5
MORPHOLOGY_HIT_AND_MISS18
MORPHOLOGY_ITERATIVE22
MORPHOLOGY_OPEN8
MORPHOLOGY_OPEN_INTENSITY10
MORPHOLOGY_SMOOTH12
MORPHOLOGY_THICKEN20
MORPHOLOGY_THINNING19
MORPHOLOGY_TOP_HAT16
MORPHOLOGY_VORONOI21
NOISE_GAUSSIAN2
NOISE_IMPULSE4
NOISE_LAPLACIAN5
NOISE_MULTIPLICATIVEGAUSSIAN3
NOISE_POISSON6
NOISE_RANDOM7
NOISE_UNIFORM1
NORMALIZE_KERNEL_CORRELATE65536
NORMALIZE_KERNEL_NONE0
NORMALIZE_KERNEL_PERCENT4096
NORMALIZE_KERNEL_VALUE8192
ORIENTATION_BOTTOMLEFT4
ORIENTATION_BOTTOMRIGHT3
ORIENTATION_LEFTBOTTOM8
ORIENTATION_LEFTTOP5
ORIENTATION_RIGHTBOTTOM7
ORIENTATION_RIGHTTOP6
ORIENTATION_TOPLEFT1
ORIENTATION_TOPRIGHT2
ORIENTATION_UNDEFINED0
PAINT_FILLTOBORDER4
PAINT_FLOODFILL3
PAINT_POINT1
PAINT_REPLACE2
PAINT_RESET5
PATHUNITS_OBJECTBOUNDINGBOX3
PATHUNITS_UNDEFINED0
PATHUNITS_USERSPACE1
PATHUNITS_USERSPACEONUSE2
PIXELSTORAGE_CHAR1
PIXELSTORAGE_DOUBLE2
PIXELSTORAGE_FLOAT3
PIXELSTORAGE_INTEGER4
PIXELSTORAGE_LONG5
PIXELSTORAGE_QUANTUM6
PIXELSTORAGE_SHORT7
PIXEL_CHAR1
PIXEL_DOUBLE2
PIXEL_FLOAT3
PIXEL_INTEGER4
PIXEL_LONG5
PIXEL_QUANTUM6
PIXEL_SHORT7
PREVIEW_ADDNOISE14
PREVIEW_BLUR16
PREVIEW_BRIGHTNESS6
PREVIEW_CHARCOALDRAWING28
PREVIEW_DESPECKLE12
PREVIEW_DULL9
PREVIEW_EDGEDETECT18
PREVIEW_GAMMA7
PREVIEW_GRAYSCALE10
PREVIEW_HUE4
PREVIEW_IMPLODE25
PREVIEW_JPEG29
PREVIEW_OILPAINT27
PREVIEW_QUANTIZE11
PREVIEW_RAISE22
PREVIEW_REDUCENOISE13
PREVIEW_ROLL3
PREVIEW_ROTATE1
PREVIEW_SATURATION5
PREVIEW_SEGMENT23
PREVIEW_SHADE21
PREVIEW_SHARPEN15
PREVIEW_SHEAR2
PREVIEW_SOLARIZE20
PREVIEW_SPIFF8
PREVIEW_SPREAD19
PREVIEW_SWIRL24
PREVIEW_THRESHOLD17
PREVIEW_UNDEFINED0
PREVIEW_WAVE26
QUANTUM_RANGE65535
RENDERINGINTENT_ABSOLUTE3
RENDERINGINTENT_PERCEPTUAL2
RENDERINGINTENT_RELATIVE4
RENDERINGINTENT_SATURATION1
RENDERINGINTENT_UNDEFINED0
RESOLUTION_PIXELSPERCENTIMETER2
RESOLUTION_PIXELSPERINCH1
RESOLUTION_UNDEFINED0
RESOURCETYPE_AREA1
RESOURCETYPE_DISK2
RESOURCETYPE_FILE3
RESOURCETYPE_HEIGHT10
RESOURCETYPE_LISTLENGTH11
RESOURCETYPE_MAP4
RESOURCETYPE_MEMORY5
RESOURCETYPE_THREAD6
RESOURCETYPE_THROTTLE8
RESOURCETYPE_TIME7
RESOURCETYPE_UNDEFINED0
RESOURCETYPE_WIDTH9
SPARSECOLORMETHOD_BARYCENTRIC1
SPARSECOLORMETHOD_BILINEAR7
SPARSECOLORMETHOD_INVERSE19
SPARSECOLORMETHOD_MANHATTAN20
SPARSECOLORMETHOD_POLYNOMIAL8
SPARSECOLORMETHOD_SPEPARDS16
SPARSECOLORMETHOD_UNDEFINED0
SPARSECOLORMETHOD_VORONOI18
STATISTIC_GRADIENT1
STATISTIC_MAXIMUM2
STATISTIC_MEAN3
STATISTIC_MEDIAN4
STATISTIC_MINIMUM5
STATISTIC_MODE6
STATISTIC_NONPEAK7
STATISTIC_ROOT_MEAN_SQUARE9
STATISTIC_STANDARD_DEVIATION8
STRETCH_ANY10
STRETCH_CONDENSED4
STRETCH_EXPANDED7
STRETCH_EXTRACONDENSED3
STRETCH_EXTRAEXPANDED8
STRETCH_NORMAL1
STRETCH_SEMICONDENSED5
STRETCH_SEMIEXPANDED6
STRETCH_ULTRACONDENSED2
STRETCH_ULTRAEXPANDED9
STYLE_ANY4
STYLE_BOLD5
STYLE_ITALIC2
STYLE_NORMAL1
STYLE_OBLIQUE3
USE_ZEND_MM0
VIRTUALPIXELMETHOD_BACKGROUND1
VIRTUALPIXELMETHOD_BLACK10
VIRTUALPIXELMETHOD_CHECKERTILE17
VIRTUALPIXELMETHOD_CONSTANT2
VIRTUALPIXELMETHOD_DITHER3
VIRTUALPIXELMETHOD_EDGE4
VIRTUALPIXELMETHOD_GRAY11
VIRTUALPIXELMETHOD_HORIZONTALTILE13
VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE15
VIRTUALPIXELMETHOD_MASK9
VIRTUALPIXELMETHOD_MIRROR5
VIRTUALPIXELMETHOD_RANDOM6
VIRTUALPIXELMETHOD_TILE7
VIRTUALPIXELMETHOD_TRANSPARENT8
VIRTUALPIXELMETHOD_UNDEFINED0
VIRTUALPIXELMETHOD_VERTICALTILE14
VIRTUALPIXELMETHOD_VERTICALTILEEDGE16
VIRTUALPIXELMETHOD_WHITE12