搜索
您的当前位置:首页调用 ImageMagick 的PHP函数中文文档

调用 ImageMagick 的PHP函数中文文档

来源:飒榕旅游知识分享网
导读:iMagick的作者并未告诉大家可以使用那些函数以及方法,这些函数和方法都是从source文件中的定义找到。作者摸索测试。请大家在有example的代码情况下做测试,不然很难用明白。

Function 图片构造image_handle = imagick_readimage([image 类 file]) bool = imagick_writeimage([source image handle],[new name & filetype]) UN KNOW USE = imagick_writeimages new_handle = imagick_clonehandle([image handle]) image_handle = imagick_image2blob([blob handle]) imagick_blob2image image_handle = imagick_getcanvas([color],[canvas width],[canvas height]) UN KNOW USE = imagick_newimagelist Description 读取图片到handle 写图片 复制出新句柄 将数据流数据转换成为image数据 与image2blob相反 创建一个画布 最后一次执行是否成功 错误句柄bool = imagick_iserror([image handle]) 类 如果执行iImagickrason_string = imagick_failedreason([image 函数返回假将可以handle]) 从本函数抛出失败 desc_string = 显示抛出的异常描imagick_faileddescription([image handle]) 述 error_string = imagick_error([image handle]) 返回错误内容 获得图片宽度 获得图片高度 获得图片MIME类型 获得图片DEPTH值 获取图片image_width = imagick_getwidth([image 信息类 handle]) image_height = imagick_getheight([image handle]) mime_string = imagick_getmimetype([image handle]) depth_int = imagick_getimagedepth([image handle]) colors_num = imagick_getnumbercolors([image 获得图片颜色数量 handle]) bool = imagick_isgrayimage([image handle]) 是否会度图片 bool = imagick_ismonochromeimage([image handle]) bool = imagick_isopaqueimage([image handle]) bool = imagick_ispaletteimage([image handle]) image_type = imagick_getimagetype([image handle]) bool = imagick_isimagesequal([image handle1],([image handle2])) magick_type = imagick_getmagick([image handle]) 是否单色图片 是否不透明图片 是否彩色图片 获得图片颜色值 图片是否相同 获得图片类型 int = imagick_getcolorspace([image handle]) 图片转换bool = imagick_convert([image handle],[new 将图片数据转换成类 type]) 为指定格式 bool = imagick_setcompressiontype([image 指定图片的压缩方handle],[compression type]) 式 bool = imagick_setcompressionquality([image 指定图片的压缩质handle],[quality value]) 量 bool = imagick_resize([image handle],[new 尺寸调整width],[new height],[filter 改变图片尺寸 类 type],[blur],[geometry]) UN KNOW USE imagick_magnify UN KNOW USE imagick_minify bool = imagick_scale([image handle],[new width],[new height],[geometry]) 按照指定比例缩小图片 bool = imagick_sample([image handle],[new 缩小产生样本图片 width],[new height],[geometry]) bool = imagick_zoom([image handle],[new width],[new height],[geometry]) 放大图片 设置字体大小 设置采用的字体 开始在一个image上绘画 字体设置bool = imagick_setfontsize([image 类 handle],[size]) UN KNOW USE imagick_setfontstyle bool = imagick_setfontface([image handle],[Font Name]) 绘图类 bool = imagick_begindraw([image handle]) bool = imagick_drawannotation([image handle],[x],[y],[text]) bool = imagick_drawrectangle([image handle],[up x],[up y],[low x],[low y]) 在image上的x y开始画一些文字符号 画一个矩形 bool = imagick_drawellipse([image handle],[starting x],[starting y],[ending 画一个椭圆形 x],[ending y],[start rotation in degrees],[end rotation in degrees]) bool = imagick_drawarc([image handle],[origin x],[origin y],[ x radius],[ y radius],[ start rotation in degrees],[ end rotation in degrees]) bool = imagick_drawcircle([image handle],[origin x],[origin y],[perimater x],[perimater y]) 画一个弧形 画一个圆 bool = imagick_drawline([image handle],[starting x],[starting y],[ending 画一条线 x],[ending y]) bool = imagick_drawpoint([image handle],[x 画一个点 coordinate ],[y coordinate ]) bool = imagick_setfillcolor([image handle],[color vlaue]) bool = imagick_setfillopacity([image handle],[opactiy]) 设置填充颜色 设置不透明度 设置旋转图片的角度 旋转剪切 提高或降低图象对比度 色彩均匀化 质量增强bool = imagick_rotate([image 类 handle],[degrees]) bool = imagick_shear([image handle],[x coordinate],[y coordinate]) bool = imagick_contrast([image handle],[contrast value]) bool = imagick_equalize([image handle]) bool = imagick_gamma([image handle],[gamma 图象GAMMA调整 value 0.8 - 2.3]) bool = imagick_level([image handle],[gamma 图象GAMMA调整 value 0.8 - 2.3]) bool = imagick_modulate([image handle],[modulate]) 调整亮度,饱和度,色彩 bool = imagick_negate([image handle],[gray 反色图片 scale value]) bool = imagick_normalize([image handle]) 规格化图片 bool = imagick_border([image handle],[ x 图片装饰starting position of border ],[y starting 在图片上化一个边类 position of border ],[width of 框 border],[height of border])

因篇幅问题不能全部显示,请点此查看更多更全内容

Top