olga 发表于 2017-4-6 09:08:19

调用 ImageMagick 的PHP函数中文文档

导读:iMagick的作者并未告诉大家可以使用那些函数以及方法,这些函数和方法都是从source文件中的定义找到。作者摸索测试。请大家在有example的代码情况下做测试,不然很难用明白。
                        Function            Description                        图片构造类            image_handle = imagick_readimage()            读取图片到handle                                     bool = imagick_writeimage(,)            写图片                                     UN KNOW USE = imagick_writeimages                                                  new_handle = imagick_clonehandle()            复制出新句柄                                     image_handle = imagick_image2blob()            将数据流数据转换成为image数据                                     imagick_blob2image            与image2blob相反                                     image_handle = imagick_getcanvas(,,)            创建一个画布                                     UN KNOW USE = imagick_newimagelist                                     错误句柄类            bool = imagick_iserror()            最后一次执行是否成功                                     rason_string = imagick_failedreason()            如果执行iImagick函数返回假将可以从本函数抛出失败                                     desc_string = imagick_faileddescription()            显示抛出的异常描述                                     error_string = imagick_error()            返回错误内容                        获取图片信息类            image_width = imagick_getwidth()            获得图片宽度                                     image_height = imagick_getheight()            获得图片高度                                     mime_string = imagick_getmimetype()            获得图片MIME类型                                     depth_int = imagick_getimagedepth()            获得图片DEPTH值                                     colors_num = imagick_getnumbercolors()            获得图片颜色数量                                     bool = imagick_isgrayimage()            是否会度图片                                     bool = imagick_ismonochromeimage()            是否单色图片                                     bool = imagick_isopaqueimage()            是否不透明图片                                     bool = imagick_ispaletteimage()            是否彩色图片                                     image_type = imagick_getimagetype()            获得图片颜色值                                     bool = imagick_isimagesequal(,())            图片是否相同                                     magick_type = imagick_getmagick()            获得图片类型                                     int = imagick_getcolorspace()                                     图片转换类            bool = imagick_convert(,)            将图片数据转换成为指定格式                                     bool = imagick_setcompressiontype(,)            指定图片的压缩方式                                     bool = imagick_setcompressionquality(,)            指定图片的压缩质量                        尺寸调整类            bool = imagick_resize(,,,,,)            改变图片尺寸                                     UN KNOW USE imagick_magnify                                                  UN KNOW USE imagick_minify                                                  bool = imagick_scale(,,,)            按照指定比例缩小图片                                     bool = imagick_sample(,,,)            缩小产生样本图片                                     bool = imagick_zoom(,,,)            放大图片                        字体设置类            bool = imagick_setfontsize(,)            设置字体大小                                     UN KNOW USE imagick_setfontstyle                                                  bool = imagick_setfontface(,)            设置采用的字体                        绘图类            bool = imagick_begindraw()            开始在一个image上绘画                                     bool = imagick_drawannotation(,,,)            在image上的x y开始画一些文字符号                                     bool = imagick_drawrectangle(,,,,)            画一个矩形                                     bool = imagick_drawellipse(,,,,,,)            画一个椭圆形                                     bool = imagick_drawarc(,,,[ x radius],[ y radius],[ start rotation in degrees],[ end rotation in degrees])            画一个弧形                                     bool = imagick_drawcircle(,,,[perimater x],[perimater y])            画一个圆                                     bool = imagick_drawline(,[starting x],[starting y],[ending x],[ending y])            画一条线                                     bool = imagick_drawpoint(, coordinate ], coordinate ])            画一个点                                     bool = imagick_setfillcolor(,)            设置填充颜色                                     bool = imagick_setfillopacity(,)            设置不透明度                        质量增强类            bool = imagick_rotate(,)            设置旋转图片的角度                                     bool = imagick_shear(,[x coordinate],[y coordinate])            旋转剪切                                     bool = imagick_contrast(,[contrast value])            提高或降低图象对比度                                     bool = imagick_equalize()            色彩均匀化                                     bool = imagick_gamma(,[gamma value 0.8 - 2.3])            图象GAMMA调整                                     bool = imagick_level(,[gamma value 0.8 - 2.3])            图象GAMMA调整                                     bool = imagick_modulate(,[modulate])            调整亮度,饱和度,色彩                                     bool = imagick_negate(,[gray scale value])            反色图片                                     bool = imagick_normalize()            规格化图片                        图片装饰类            bool = imagick_border(,[ x starting position of border ],[y starting position of border ],[width of border],[height of border])            在图片上化一个边框                                     UN KNOW USE imagick_frame                                                  bool = imagick_raise(,[ x starting position of border ],[ y starting position of border ],[ width of border],[ height of border],)            浮雕效果                        效率滤镜类            bool = imagick_charcoal(,[the radius of pixel neighborhood],[the standard deviation of the Gaussian, in pixels])            碳笔                                     bool = imagick_implode(,[define the extent of the implosion])            内曝效果                                     bool = imagick_oilpaint(,[the radius of the circular
neighborhood])            油画效果                                     bool = imagick_solarize(,[define the extent of solarization - this value is between 0 and MaxRGB])            反转曝光                                     bool = imagick_swirl(,[define the tightness of the swirling
effect ])            旋涡                                     bool = imagick_wave(,[the amplitude of the wave],[the frequency of the wave])            水波纹                        图片滤镜类            bool = imagick_blur(,[the radius of the Gaussian, in
pixels, not counter the center pixel],[the standard deviation of the
Gaussian, in pixels])            模糊                                     bool = imagick_despeckle()            平滑聚焦图象                                     bool = imagick_edge(,[the radius of the pixel neighbor- hood; using 0 will cause a suitable radius to be selected for you])            边缘锐化                                     bool = imagick_emboss(,[the radius of the pixel neighbor-
hood],[the standard deviation of the Gaussian, in pixels])            浮雕效果                                     bool = imagick_enhance()            图象增强                                     bool = imagick_gaussianblur(,[he radius of the Gaussian, in pixels, not counting the center pixel; using 0 will cause a suitable radius to be selected for you],[the standard deviation of the Gaussian, in pixels])            高斯模糊                                     bool = imagick_medianfilter(,[the radius of the pixel neighbor-hood])            平滑过滤图象                                     bool = imagick_motionblur(,[the radius of the Gaussian, in
pixels, not counter the center pixel],[the standard deviation of the
Gaussian, in pixels],[apply the effect along this angle])            动感模糊                                     bool = imagick_reducenoise(,[the radius of the pixel neighborhood])            降噪                                     bool = imagick_shade            阴影                                     bool = imagick_sharpen            锐化                                     bool = imagick_spread            发散                                     bool = imagick_threshold            临界值                                     bool = imagick_unsharpmask            unsharpmask锐化                                     UN KNOW USE bool = imagick_flatten                                     图片列表类            bool = imagick_next                                                  bool = imagick_prev                                                  bool = imagick_first                                                  bool = imagick_goto                                                  bool = imagick_getlistsize                                                  bool = imagick_getlistindex                                                  bool = imagick_getimagefromlist                                                  bool = imagick_pushlist                                                  bool = imagick_poplist                                     图片变形类            bool = imagick_chop                                                  bool = imagick_crop(,[x starting position of border],[y starting position of border],[width of border],[height of border])            从图片上截取                                     bool = imagick_flip ()            图象翻转                                     bool = imagick_flop            左右转换                                     bool = imagick_roll                                                  bool = imagick_profile                                                  bool = imagick_rgbtransform            色彩变更                                     bool = imagick_transformrgb            色彩变更                                     bool = imagick_mosaic                                                  bool = imagick_transparent(,)            设置指定颜色成为透明色                        图片量子化            bool = imagick_ordereddither()                                     图片合成类            bool = imagick_composite            图象融合                        图片属性设置            bool = imagick_set_image_comment(,[the comment to set in the image])            设置图象的一些参数                                     bool = imagick_set_image_quality(,[quality value])            设置图象的质量                        句柄销毁类            bool = imagick_destroyhandle()            干掉指定的image handle                        兼容的函数            imagick_read => imagick_readimage                                                  imagick_free => imagick_destroyhandle                                     抛弃的函数            imagick_add_resource                                                  imagick_list_magickinfo                                                  imagick_new                                                  imagick_init                                                  imagick_copy_sample                                                  imagick_copy_resize                                                  imagick_copy_crop                                                  imagick_copy_shear                                                  imagick_copy_rotate                                                  imagick_copy_morph                                                  imagick_dump           
页: [1]
查看完整版本: 调用 ImageMagick 的PHP函数中文文档