PHP imagick 组件
(PECL imagick 2, PECL imagick 3)
类摘要
public adaptiveBlurImage (
float $radius
,
float $sigma
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public adaptiveResizeImage (
int $columns
,
int $rows
,
bool $bestfit
= false
,
bool $legacy
= false
):
bool
public adaptiveSharpenImage (
float $radius
,
float $sigma
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public addNoiseImage (
int $noise_type
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public blurImage (
float $radius
,
float $sigma
,
int $channel
= ? ):
bool
public chopImage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public clampImage (
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public clutImage (
Imagick $lookup_table
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
compositeImage (
Imagick $composite_object
,
int $composite
,
int $x
,
int $y
,
int $channel
= Imagick::CHANNEL_ALL ):
bool
public contrastStretchImage (
float $black_point
,
float $white_point
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public convolveImage (
array $kernel
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public count (
int $mode
= 0 ):
int
cropImage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public distortImage (
int $method
,
array $arguments
,
bool $bestfit
):
bool
public evaluateImage (
int $op
,
float $constant
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public exportImagePixels (
int $x
,
int $y
,
int $width
,
int $height
,
string $map
,
int $STORAGE
):
array
public extentImage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public filter (
ImagickKernel $ImagickKernel
,
int $channel
= Imagick::CHANNEL_UNDEFINED ):
bool
public floodFillPaintImage (
mixed $fill
,
float $fuzz
,
mixed $target
,
int $x
,
int $y
,
bool $invert
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public frameImage (
mixed $matte_color
,
int $width
,
int $height
,
int $inner_bevel
,
int $outer_bevel
):
bool
public functionImage (
int $function
,
array $arguments
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public fxImage (
string $expression
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
Imagick
public gammaImage (
float $gamma
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public gaussianBlurImage (
float $radius
,
float $sigma
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public getImageProfiles (
string $pattern
= "*" ,
bool $include_values
= true
):
array
public importImagePixels (
int $x
,
int $y
,
int $width
,
int $height
,
string $map
,
int $storage
,
array $pixels
):
bool
public levelImage (
float $blackPoint
,
float $gamma
,
float $whitePoint
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public liquidRescaleImage (
int $width
,
int $height
,
float $delta_x
,
float $rigidity
):
bool
public modulateImage (
float $brightness
,
float $saturation
,
float $hue
):
bool
public morphology (
int $morphologyMethod
,
int $iterations
,
ImagickKernel $ImagickKernel
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public motionBlurImage (
float $radius
,
float $sigma
,
float $angle
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public negateImage (
bool $gray
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
newImage (
int $cols
,
int $rows
,
mixed $background
,
string $format
= ? ):
bool
public newPseudoImage (
int $columns
,
int $rows
,
string $pseudoString
):
bool
public pingImageFile (
resource $filehandle
,
string $fileName
= ? ):
bool
public quantizeImage (
int $numberColors
,
int $colorspace
,
int $treedepth
,
bool $dither
,
bool $measureError
):
bool
public quantizeImages (
int $numberColors
,
int $colorspace
,
int $treedepth
,
bool $dither
,
bool $measureError
):
bool
public static queryFonts (
string $pattern
= "*" ):
array
public radialBlurImage (
float $angle
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public raiseImage (
int $width
,
int $height
,
int $x
,
int $y
,
bool $raise
):
bool
public readImageFile (
resource $filehandle
,
string $fileName
= null
):
bool
public resampleImage (
float $x_resolution
,
float $y_resolution
,
int $filter
,
float $blur
):
bool
public resizeImage (
int $columns
,
int $rows
,
int $filter
,
float $blur
,
bool $bestfit
= false
,
bool $legacy
= false
):
bool
public roundCorners (
float $x_rounding
,
float $y_rounding
,
float $stroke_width
= 10 ,
float $displace
= 5 ,
float $size_correction
= -6 ):
bool
public scaleImage (
int $cols
,
int $rows
,
bool $bestfit
= false
,
bool $legacy
= false
):
bool
public segmentImage (
int $COLORSPACE
,
float $cluster_threshold
,
float $smooth_threshold
,
bool $verbose
= false
):
bool
public selectiveBlurImage (
float $radius
,
float $sigma
,
float $threshold
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public setImagePage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public setOption (
string $key
,
string $value
):
bool
public setPage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public static setRegistry (
string $key
,
string $value
):
bool
public setResolution (
float $x_resolution
,
float $y_resolution
):
bool
public setSize (
int $columns
,
int $rows
):
bool
public setType (
int $image_type
):
bool
public shadeImage (
bool $gray
,
float $azimuth
,
float $elevation
):
bool
public shadowImage (
float $opacity
,
float $sigma
,
int $x
,
int $y
):
bool
public sharpenImage (
float $radius
,
float $sigma
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public sigmoidalContrastImage (
bool $sharpen
,
float $alpha
,
float $beta
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public sketchImage (
float $radius
,
float $sigma
,
float $angle
):
bool
public sparseColorImage (
int $SPARSE_METHOD
,
array $arguments
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public spliceImage (
int $width
,
int $height
,
int $x
,
int $y
):
bool
public statisticImage (
int $type
,
int $width
,
int $height
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public thresholdImage (
float $threshold
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public thumbnailImage (
int $columns
,
int $rows
,
bool $bestfit
= false
,
bool $fill
= false
,
bool $legacy
= false
):
bool
public unsharpMaskImage (
float $radius
,
float $sigma
,
float $amount
,
float $threshold
,
int $channel
= Imagick::CHANNEL_DEFAULT ):
bool
public vignetteImage (
float $blackPoint
,
float $whitePoint
,
int $x
,
int $y
):
bool
public waveImage (
float $amplitude
,
float $length
):
bool
public writeImages (
string $filename
,
bool $adjoin
):
bool
}
Image methods and global methods
The Imagick class has the ability to hold and operate on multiple
images simultaneously. This is achieved through an internal stack. There
is always an internal pointer that points at the current image. Some
functions operate on all images in the Imagick class, but most operate
only on the current image in the internal stack. As a convention, method
names can contain the word Image to denote they affect only the current
image in the stack.
Class Methods
Because there are so many methods, here is a handy list of methods,
somewhat reduced to their general purpose:
目录
Hello!需要输入验证码
微信公众号
哈希空间 数码玩家俱乐部
微信扫码进入公众号回复 1 即可 获得验证码
验证后就可以免弹窗 畅通无阻的访问,一年内有效
关注就是支持,更好的服务提供给粉丝
扫码登录怎么实现?
微信公众号菜单中小程序中也可查看网站内各种资料
方法二:请2个朋友访问你的邀请链接,即可消除弹窗。进度:0 /2