略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 预定义常量

2024-11-13

预定义常量

下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。

COLOR_* constants

Colortype constants. These constants are mainly used with ImagickPixel.

imagick::COLOR_BLACK (int)
Black color
imagick::COLOR_BLUE (int)
Blue color
imagick::COLOR_CYAN (int)
Cyan color
imagick::COLOR_GREEN (int)
Green color
imagick::COLOR_RED (int)
Red color
imagick::COLOR_YELLOW (int)
Yellow color
imagick::COLOR_MAGENTA (int)
Magenta color
imagick::COLOR_OPACITY (int)
Color's opacity
imagick::COLOR_ALPHA (int)
Color's alpha
imagick::COLOR_FUZZ (int)
Color's fuzz
DISPOSE constants

Dispose type constants

imagick::DISPOSE_UNRECOGNIZED (int)
Unrecognized dispose type
imagick::DISPOSE_UNDEFINED (int)
Undefined dispose type
imagick::DISPOSE_NONE (int)
No dispose type defined
imagick::DISPOSE_BACKGROUND (int)
Dispose background
imagick::DISPOSE_PREVIOUS (int)
Dispose previous
Composite Operator Constants
imagick::COMPOSITE_DEFAULT (int)
The default composite operator
imagick::COMPOSITE_UNDEFINED (int)
Undefined composite operator
imagick::COMPOSITE_NO (int)
No composite operator defined
imagick::COMPOSITE_ADD (int)
The result of image + image
imagick::COMPOSITE_ATOP (int)
The result is the same shape as image, with composite image obscuring image where the image shapes overlap
imagick::COMPOSITE_BLEND (int)
Blends the image
imagick::COMPOSITE_BUMPMAP (int)
The same as COMPOSITE_MULTIPLY, except the source is converted to grayscale first.
imagick::COMPOSITE_CLEAR (int)
Makes the target image transparent
imagick::COMPOSITE_COLORBURN (int)
Darkens the destination image to reflect the source image
imagick::COMPOSITE_COLORDODGE (int)
Brightens the destination image to reflect the source image
imagick::COMPOSITE_COLORIZE (int)
Colorizes the target image using the composite image
imagick::COMPOSITE_COPYBLACK (int)
Copies black from the source to target
imagick::COMPOSITE_COPYBLUE (int)
Copies blue from the source to target
imagick::COMPOSITE_COPY (int)
Copies the source image on the target image
imagick::COMPOSITE_COPYCYAN (int)
Copies cyan from the source to target
imagick::COMPOSITE_COPYGREEN (int)
Copies green from the source to target
imagick::COMPOSITE_COPYMAGENTA (int)
Copies magenta from the source to target
imagick::COMPOSITE_COPYOPACITY (int)
Copies opacity from the source to target
imagick::COMPOSITE_COPYRED (int)
Copies red from the source to target
imagick::COMPOSITE_COPYYELLOW (int)
Copies yellow from the source to target
imagick::COMPOSITE_DARKEN (int)
Darkens the target image
imagick::COMPOSITE_DSTATOP (int)
The part of the destination lying inside of the source is composited over the source and replaces the destination
imagick::COMPOSITE_DST (int)
The target is left untouched
imagick::COMPOSITE_DSTIN (int)
The parts inside the source replace the target
imagick::COMPOSITE_DSTOUT (int)
The parts outside the source replace the target
imagick::COMPOSITE_DSTOVER (int)
Target replaces the source
imagick::COMPOSITE_DIFFERENCE (int)
Subtracts the darker of the two constituent colors from the lighter
imagick::COMPOSITE_DISPLACE (int)
Shifts target image pixels as defined by the source
imagick::COMPOSITE_DISSOLVE (int)
Dissolves the source in to the target
imagick::COMPOSITE_EXCLUSION (int)
Produces an effect similar to that of imagick::COMPOSITE_DIFFERENCE, but appears as lower contrast
imagick::COMPOSITE_HARDLIGHT (int)
Multiplies or screens the colors, dependent on the source color value
imagick::COMPOSITE_HUE (int)
Modifies the hue of the target as defined by source
imagick::COMPOSITE_IN (int)
Composites source into the target
imagick::COMPOSITE_LIGHTEN (int)
Lightens the target as defined by source
imagick::COMPOSITE_LUMINIZE (int)
Luminizes the target as defined by source
imagick::COMPOSITE_MINUS (int)
Subtracts the source from the target
imagick::COMPOSITE_MODULATE (int)
Modulates the target brightness, saturation and hue as defined by source
imagick::COMPOSITE_MULTIPLY (int)
Multiplies the target to the source
imagick::COMPOSITE_OUT (int)
Composites outer parts of the source on the target
imagick::COMPOSITE_OVER (int)
Composites source over the target
imagick::COMPOSITE_OVERLAY (int)
Overlays the source on the target
imagick::COMPOSITE_PLUS (int)
Adds the source to the target
imagick::COMPOSITE_REPLACE (int)
Replaces the target with the source
imagick::COMPOSITE_SATURATE (int)
Saturates the target as defined by the source
imagick::COMPOSITE_SCREEN (int)
The source and destination are complemented and then multiplied and then replace the destination
imagick::COMPOSITE_SOFTLIGHT (int)
Darkens or lightens the colors, dependent on the source
imagick::COMPOSITE_SRCATOP (int)
The part of the source lying inside of the destination is composited onto the destination
imagick::COMPOSITE_SRC (int)
The source is copied to the destination
imagick::COMPOSITE_SRCIN (int)
The part of the source lying inside of the destination replaces the destination
imagick::COMPOSITE_SRCOUT (int)
The part of the source lying outside of the destination replaces the destination
imagick::COMPOSITE_SRCOVER (int)
The source replaces the destination
imagick::COMPOSITE_SUBTRACT (int)
Subtract the colors in the source image from the destination image
imagick::COMPOSITE_THRESHOLD (int)
The source is composited on the target as defined by source threshold
imagick::COMPOSITE_XOR (int)
The part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source
MONTAGEMODE constants

imagick::MONTAGEMODE_FRAME (int)
imagick::MONTAGEMODE_UNFRAME (int)
imagick::MONTAGEMODE_CONCATENATE (int)
STYLE constants

imagick::STYLE_NORMAL (int)
imagick::STYLE_ITALIC (int)
imagick::STYLE_OBLIQUE (int)
imagick::STYLE_ANY (int)
FILTER constants

imagick::FILTER_UNDEFINED (int)
imagick::FILTER_POINT (int)
imagick::FILTER_BOX (int)
imagick::FILTER_TRIANGLE (int)
imagick::FILTER_HERMITE (int)
imagick::FILTER_HANNING (int)
imagick::FILTER_HAMMING (int)
imagick::FILTER_BLACKMAN (int)
imagick::FILTER_GAUSSIAN (int)
imagick::FILTER_QUADRATIC (int)
imagick::FILTER_CUBIC (int)
imagick::FILTER_CATROM (int)
imagick::FILTER_MITCHELL (int)
imagick::FILTER_LANCZOS (int)
imagick::FILTER_BESSEL (int)
imagick::FILTER_SINC (int)
IMGTYPE constants

imagick::IMGTYPE_UNDEFINED (int)
imagick::IMGTYPE_BILEVEL (int)
imagick::IMGTYPE_GRAYSCALE (int)
imagick::IMGTYPE_GRAYSCALEMATTE (int)
imagick::IMGTYPE_PALETTE (int)
imagick::IMGTYPE_PALETTEMATTE (int)
imagick::IMGTYPE_TRUECOLOR (int)
imagick::IMGTYPE_TRUECOLORMATTE (int)
imagick::IMGTYPE_COLORSEPARATION (int)
imagick::IMGTYPE_COLORSEPARATIONMATTE (int)
imagick::IMGTYPE_OPTIMIZE (int)
RESOLUTION constants

imagick::RESOLUTION_UNDEFINED (int)
imagick::RESOLUTION_PIXELSPERINCH (int)
imagick::RESOLUTION_PIXELSPERCENTIMETER (int)
COMPRESSION constants

imagick::COMPRESSION_UNDEFINED (int)
imagick::COMPRESSION_NO (int)
imagick::COMPRESSION_BZIP (int)
imagick::COMPRESSION_FAX (int)
imagick::COMPRESSION_GROUP4 (int)
imagick::COMPRESSION_JPEG (int)
imagick::COMPRESSION_JPEG2000 (int)
imagick::COMPRESSION_LOSSLESSJPEG (int)
imagick::COMPRESSION_LZW (int)
imagick::COMPRESSION_RLE (int)
imagick::COMPRESSION_ZIP (int)
imagick::COMPRESSION_DXT1 (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.0 or higher.
imagick::COMPRESSION_DXT3 (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.0 or higher.
imagick::COMPRESSION_DXT5 (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.0 or higher.
PAINT constants

imagick::PAINT_POINT (int)
imagick::PAINT_REPLACE (int)
imagick::PAINT_FLOODFILL (int)
imagick::PAINT_FILLTOBORDER (int)
imagick::PAINT_RESET (int)
GRAVITY constants

imagick::GRAVITY_NORTHWEST (int)
imagick::GRAVITY_NORTH (int)
imagick::GRAVITY_NORTHEAST (int)
imagick::GRAVITY_WEST (int)
imagick::GRAVITY_CENTER (int)
imagick::GRAVITY_EAST (int)
imagick::GRAVITY_SOUTHWEST (int)
imagick::GRAVITY_SOUTH (int)
imagick::GRAVITY_SOUTHEAST (int)
STRETCH constants

imagick::STRETCH_NORMAL (int)
imagick::STRETCH_ULTRACONDENSED (int)
imagick::STRETCH_CONDENSED (int)
imagick::STRETCH_SEMICONDENSED (int)
imagick::STRETCH_SEMIEXPANDED (int)
imagick::STRETCH_EXPANDED (int)
imagick::STRETCH_EXTRAEXPANDED (int)
imagick::STRETCH_ULTRAEXPANDED (int)
imagick::STRETCH_ANY (int)
ALIGN constants

imagick::ALIGN_UNDEFINED (int)
imagick::ALIGN_LEFT (int)
imagick::ALIGN_CENTER (int)
imagick::ALIGN_RIGHT (int)
DECORATION constants

imagick::DECORATION_NO (int)
imagick::DECORATION_UNDERLINE (int)
imagick::DECORATION_OVERLINE (int)
imagick::DECORATION_LINETROUGH (int)
NOISE constants

imagick::NOISE_UNIFORM (int)
imagick::NOISE_GAUSSIAN (int)
imagick::NOISE_MULTIPLICATIVEGAUSSIAN (int)
imagick::NOISE_IMPULSE (int)
imagick::NOISE_LAPLACIAN (int)
imagick::NOISE_POISSON (int)
imagick::NOISE_RANDOM (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
CHANNEL constants

imagick::CHANNEL_UNDEFINED (int)
imagick::CHANNEL_RED (int)
imagick::CHANNEL_GRAY (int)
imagick::CHANNEL_CYAN (int)
imagick::CHANNEL_GREEN (int)
imagick::CHANNEL_MAGENTA (int)
imagick::CHANNEL_BLUE (int)
imagick::CHANNEL_YELLOW (int)
imagick::CHANNEL_ALPHA (int)
imagick::CHANNEL_OPACITY (int)
imagick::CHANNEL_MATTE (int)
imagick::CHANNEL_BLACK (int)
imagick::CHANNEL_INDEX (int)
imagick::CHANNEL_ALL (int)
imagick::CHANNEL_DEFAULT (int)
METRIC constants

imagick::METRIC_UNDEFINED (int)
imagick::METRIC_MEANABSOLUTEERROR (int)
imagick::METRIC_MEANSQUAREERROR (int)
imagick::METRIC_PEAKABSOLUTEERROR (int)
imagick::METRIC_PEAKSIGNALTONOISERATIO (int)
imagick::METRIC_ROOTMEANSQUAREDERROR (int)
PIXEL constants

imagick::PIXEL_CHAR (int)
imagick::PIXEL_DOUBLE (int)
imagick::PIXEL_FLOAT (int)
imagick::PIXEL_INTEGER (int)
Only available for ImageMagick < 7.
imagick::PIXEL_LONG (int)
imagick::PIXEL_QUANTUM (int)
imagick::PIXEL_SHORT (int)
EVALUATE constants

imagick::EVALUATE_UNDEFINED (int)
imagick::EVALUATE_ADD (int)
imagick::EVALUATE_AND (int)
imagick::EVALUATE_DIVIDE (int)
imagick::EVALUATE_LEFTSHIFT (int)
imagick::EVALUATE_MAX (int)
imagick::EVALUATE_MIN (int)
imagick::EVALUATE_MULTIPLY (int)
imagick::EVALUATE_OR (int)
imagick::EVALUATE_RIGHTSHIFT (int)
imagick::EVALUATE_SET (int)
imagick::EVALUATE_SUBTRACT (int)
imagick::EVALUATE_XOR (int)
imagick::EVALUATE_POW (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_LOG (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_THRESHOLD (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_THRESHOLDBLACK (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_THRESHOLDWHITE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_GAUSSIANNOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_IMPULSENOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_LAPLACIANNOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_MULTIPLICATIVENOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_POISSONNOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_UNIFORMNOISE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_COSINE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_SINE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
imagick::EVALUATE_ADDMODULUS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.4 or higher.
COLORSPACE constants

imagick::COLORSPACE_UNDEFINED (int)
imagick::COLORSPACE_RGB (int)
imagick::COLORSPACE_GRAY (int)
imagick::COLORSPACE_TRANSPARENT (int)
imagick::COLORSPACE_OHTA (int)
imagick::COLORSPACE_LAB (int)
imagick::COLORSPACE_XYZ (int)
imagick::COLORSPACE_YCBCR (int)
imagick::COLORSPACE_YCC (int)
imagick::COLORSPACE_YIQ (int)
imagick::COLORSPACE_YPBPR (int)
imagick::COLORSPACE_YUV (int)
imagick::COLORSPACE_CMYK (int)
imagick::COLORSPACE_SRGB (int)
imagick::COLORSPACE_HSB (int)
imagick::COLORSPACE_HSL (int)
imagick::COLORSPACE_HWB (int)
imagick::COLORSPACE_REC601LUMA (int)
imagick::COLORSPACE_REC709LUMA (int)
imagick::COLORSPACE_LOG (int)
imagick::COLORSPACE_CMY (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.2 or higher.
VIRTUALPIXELMETHOD constants

imagick::VIRTUALPIXELMETHOD_UNDEFINED (int)
imagick::VIRTUALPIXELMETHOD_BACKGROUND (int)
imagick::VIRTUALPIXELMETHOD_CONSTANT (int)
imagick::VIRTUALPIXELMETHOD_EDGE (int)
imagick::VIRTUALPIXELMETHOD_MIRROR (int)
imagick::VIRTUALPIXELMETHOD_TILE (int)
imagick::VIRTUALPIXELMETHOD_TRANSPARENT (int)
imagick::VIRTUALPIXELMETHOD_MASK (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.2 or higher.
imagick::VIRTUALPIXELMETHOD_BLACK (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.2 or higher.
imagick::VIRTUALPIXELMETHOD_GRAY (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.2 or higher.
imagick::VIRTUALPIXELMETHOD_WHITE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.2 or higher.
imagick::VIRTUALPIXELMETHOD_HORIZONTALTILE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.3 or higher.
imagick::VIRTUALPIXELMETHOD_VERTICALTILE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.3 or higher.
PREVIEW constants

imagick::PREVIEW_UNDEFINED (int)
imagick::PREVIEW_ROTATE (int)
imagick::PREVIEW_SHEAR (int)
imagick::PREVIEW_ROLL (int)
imagick::PREVIEW_HUE (int)
imagick::PREVIEW_SATURATION (int)
imagick::PREVIEW_BRIGHTNESS (int)
imagick::PREVIEW_GAMMA (int)
imagick::PREVIEW_SPIFF (int)
imagick::PREVIEW_DULL (int)
imagick::PREVIEW_GRAYSCALE (int)
imagick::PREVIEW_QUANTIZE (int)
imagick::PREVIEW_DESPECKLE (int)
imagick::PREVIEW_REDUCENOISE (int)
imagick::PREVIEW_ADDNOISE (int)
imagick::PREVIEW_SHARPEN (int)
imagick::PREVIEW_BLUR (int)
imagick::PREVIEW_THRESHOLD (int)
imagick::PREVIEW_EDGEDETECT (int)
imagick::PREVIEW_SPREAD (int)
imagick::PREVIEW_SOLARIZE (int)
imagick::PREVIEW_SHADE (int)
imagick::PREVIEW_RAISE (int)
imagick::PREVIEW_SEGMENT (int)
imagick::PREVIEW_SWIRL (int)
imagick::PREVIEW_IMPLODE (int)
imagick::PREVIEW_WAVE (int)
imagick::PREVIEW_OILPAINT (int)
imagick::PREVIEW_CHARCOALDRAWING (int)
imagick::PREVIEW_JPEG (int)
RENDERINGINTENT constants

imagick::RENDERINGINTENT_UNDEFINED (int)
imagick::RENDERINGINTENT_SATURATION (int)
imagick::RENDERINGINTENT_PERCEPTUAL (int)
imagick::RENDERINGINTENT_ABSOLUTE (int)
imagick::RENDERINGINTENT_RELATIVE (int)
INTERLACE constants

imagick::INTERLACE_UNDEFINED (int)
imagick::INTERLACE_NO (int)
imagick::INTERLACE_LINE (int)
imagick::INTERLACE_PLANE (int)
imagick::INTERLACE_PARTITION (int)
imagick::INTERLACE_GIF (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.4 or higher.
imagick::INTERLACE_JPEG (int)
imagick::INTERLACE_PNG (int)
FILLRULE constants

imagick::FILLRULE_UNDEFINED (int)
imagick::FILLRULE_EVENODD (int)
imagick::FILLRULE_NONZERO (int)
PATHUNITS constants

imagick::PATHUNITS_UNDEFINED (int)
imagick::PATHUNITS_USERSPACE (int)
imagick::PATHUNITS_USERSPACEONUSE (int)
imagick::PATHUNITS_OBJECTBOUNDINGBOX (int)
LINECAP constants

imagick::LINECAP_UNDEFINED (int)
imagick::LINECAP_BUTT (int)
imagick::LINECAP_ROUND (int)
imagick::LINECAP_SQUARE (int)
LINEJOIN constants

imagick::LINEJOIN_UNDEFINED (int)
imagick::LINEJOIN_MITER (int)
imagick::LINEJOIN_ROUND (int)
imagick::LINEJOIN_BEVEL (int)
RESOURCETYPE constants

imagick::RESOURCETYPE_UNDEFINED (int)
imagick::RESOURCETYPE_AREA (int)
Set the maximum width * height of an image that can reside in the pixel cache memory.
imagick::RESOURCETYPE_DISK (int)
Set maximum amount of disk space in bytes permitted for use by the pixel cache.
imagick::RESOURCETYPE_FILE (int)
Set maximum number of open pixel cache files.
imagick::RESOURCETYPE_MAP (int)
Set maximum amount of memory map in bytes to allocate for the pixel cache.
imagick::RESOURCETYPE_MEMORY (int)
Set maximum amount of memory in bytes to allocate for the pixel cache from the heap.
imagick::RESOURCETYPE_THREAD (int)
Set maximum parallel threads. 此常量可用仅当Imagick编译于ImageMagick版本 6.7.8 or higher.
LAYERMETHOD constants

imagick::LAYERMETHOD_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_COALESCE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_COMPAREANY (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_COMPARECLEAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_COMPAREOVERLAY (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_DISPOSE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_OPTIMIZE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_OPTIMIZEPLUS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.2.9 or higher.
imagick::LAYERMETHOD_OPTIMIZEIMAGE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::LAYERMETHOD_OPTIMIZETRANS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::LAYERMETHOD_REMOVEDUPS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::LAYERMETHOD_REMOVEZERO (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::LAYERMETHOD_COMPOSITE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::LAYERMETHOD_MERGE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.7 or higher.
imagick::LAYERMETHOD_FLATTEN (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.7 or higher.
imagick::LAYERMETHOD_MOSAIC (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.7 or higher.
ORIENTATION constants

imagick::ORIENTATION_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_TOPLEFT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_TOPRIGHT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_BOTTOMRIGHT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_BOTTOMLEFT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_LEFTTOP (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_RIGHTTOP (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_RIGHTBOTTOM (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
imagick::ORIENTATION_LEFTBOTTOM (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.0 or higher.
DISTORTION constants

imagick::DISTORTION_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_AFFINE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_AFFINEPROJECTION (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_ARC (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_BILINEAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_PERSPECTIVE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_PERSPECTIVEPROJECTION (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_SCALEROTATETRANSLATE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.6 or higher.
imagick::DISTORTION_POLYNOMIAL (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_POLAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_DEPOLAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_BARREL (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_BARRELINVERSE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_SHEPARDS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DISTORTION_SENTINEL (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
ALPHACHANNEL constants

imagick::ALPHACHANNEL_ACTIVATE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.8 or higher.
imagick::ALPHACHANNEL_DEACTIVATE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.8 or higher.
imagick::ALPHACHANNEL_RESET (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.8 or higher.
imagick::ALPHACHANNEL_SET (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.8 or higher.
imagick::ALPHACHANNEL_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::ALPHACHANNEL_COPY (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::ALPHACHANNEL_EXTRACT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::ALPHACHANNEL_OPAQUE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::ALPHACHANNEL_SHAPE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::ALPHACHANNEL_TRANSPARENT (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
SPARSECOLORMETHOD constants

imagick::SPARSECOLORMETHOD_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::SPARSECOLORMETHOD_BARYCENTRIC (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::SPARSECOLORMETHOD_BILINEAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::SPARSECOLORMETHOD_POLYNOMIAL (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::SPARSECOLORMETHOD_SPEPARDS (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::SPARSECOLORMETHOD_VORONOI (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
FUNCTION constants

imagick::FUNCTION_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.9 or higher.
imagick::FUNCTION_POLYNOMIAL (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.9 or higher.
imagick::FUNCTION_SINUSOID (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.9 or higher.
INTERPOLATE constants

imagick::INTERPOLATE_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_AVERAGE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_BICUBIC (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_BILINEAR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_FILTER (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_INTEGER (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_MESH (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_NEARESTNEIGHBOR (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.2 or higher.
imagick::INTERPOLATE_SPLINE (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.3.4 or higher.
DITHERMETHOD constants

imagick::DITHERMETHOD_UNDEFINED (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DITHERMETHOD_NO (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DITHERMETHOD_RIEMERSMA (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
imagick::DITHERMETHOD_FLOYDSTEINBERG (int)
此常量可用仅当Imagick编译于ImageMagick版本 6.4.6 or higher.
add a noteadd a note

User Contributed Notes 2 notes

up
0
ferenczi dot krisztian at gmail dot com
4 years ago
The `COLOR_OPACITY` doesn't exist if you are using ImageMagick lib 7 or newer version!

Here is the c source code:

#if MagickLibVersion < 0x700
    IMAGICK_REGISTER_CONST_LONG("COLOR_OPACITY", PHP_IMAGICK_COLOR_OPACITY);
#endif

There isn't any information about it anywhere (or I didn't find it)! So, if you want to use it, use the 6 version of lib! You can see the current installed version of lib with this command:

$ identify -version
up
0
guy dot paddock at redbottledesign dot com
4 years ago
I believe the description for imagick::COMPOSITE_MINUS is incorrect. It states:

"Subtracts the source from the target"

But according to ImageMagick's documentation:

"The original method name 'Minus' is a synonym for 'Minus_Dst' meaning 'minus the destination'"

And defines "Minus_Dst" as:
"Src - Dest"

So the description of "imagick::COMPOSITE_MINUS" should be "Subtracts the target from the source"

官方地址:https://www.php.net/manual/en/imagick.constants.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3