📄 imagick.constants.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Predefined Constants</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="imagick.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="imagick.examples.html">Examples</a></div> <div class="up"><a href="book.imagick.html">ImageMagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <dl> <strong class="title">Colortype constants</strong> <dt> <span class="term"> <b><tt>imagick::COLOR_BLACK</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_BLUE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_CYAN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Cyan </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_GREEN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Green </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_RED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Red </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_YELLOW</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Yellow </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_MAGENTA</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Magenta </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_OPACITY</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Opacity </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_ALPHA</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Alpha </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COLOR_FUZZ</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Fuzz </span> </dd> </dt> </dl> <dl> <strong class="title">Dispose type constants</strong> <dt> <span class="term"> <b><tt>imagick::DISPOSE_UNRECOGNIZED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Unrecognized </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::DISPOSE_UNRECOGNIZED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Unrecognized </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::DISPOSE_UNDEFINED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Undefined </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::DISPOSE_NONE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> None </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::DISPOSE_BACKGROUND</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Background </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::DISPOSE_PREVIOUS</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Previous </span> </dd> </dt> </dl> <dl> <strong class="title">Composite Operator Constants</strong> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DEFAULT</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The default composite operator </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_UNDEFINED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Undefined composite operator </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_NO</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> No composite operator defined </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_ADD</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The result of image + image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_ATOP</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The result is the same shape as image, with composite image obscuring image where the image shapes overlap </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_BLEND</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Blends the image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_BUMPMAP</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The same as COMPOSITE_MULTIPLY, except the source is converted to greyscale first. </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_CLEAR</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Makes the target image transparent </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COLORBURN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Darkens the destination image to reflect the source image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COLORDODGE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Brightens the destination image to reflect the source image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COLORIZE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Colorizes the target image using the composite image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYBLACK</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies black from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYBLUE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies blue from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPY</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies the source image on the target image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYCYAN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies cyan from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYGREEN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies green from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYMAGENTA</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies magenta from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYOPACITY</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies opacity from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYRED</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies red from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_COPYYELLOW</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Copies yellow from the source to target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DARKEN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Darkens the target image </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DSTATOP</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The part of the destination lying inside of the source is composited over the source and replaces the destination </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DST</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The target is left untouched </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DSTIN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The parts inside the source replace the target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DSTOUT</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The parts outside the source replace the target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DSTOVER</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Target replaces the source </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DIFFERENCE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Subtracts the darker of the two constituent colors from the lighter </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DISPLACE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Shifts target image pixels as defined by the source </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_DISSOLVE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Dissolves the source in to the target </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_EXCLUSION</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Produces an effect similar to that of imagick::COMPOSITE_DIFFERENCE, but appears as lower contrast </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_HARDLIGHT</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Multiplies or screens the colors, dependent on the source color value </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_HUE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> Modifies the hue of the target as defined by source </span> </dd> </dt> <dt> <span class="term"> <b><tt>imagick::COMPOSITE_IN</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -