调用 ImageMagick 的PHP函数中文文档

2024-02-14 13:38

本文主要是介绍调用 ImageMagick 的PHP函数中文文档,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

导读:iMagick的作者并未告诉大家可以使用那些函数以及方法,这些函数和方法都是从source文件中的定义找到。作者摸索测试。请大家在有example的代码情况下做测试,不然很难用明白。
FunctionDescription
图片构造类image_handle = imagick_readimage([image file])读取图片到handle
 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])将数据流数据转换成为image数据
 imagick_blob2image与image2blob相反
 image_handle = imagick_getcanvas([color],[canvas width],[canvas height])创建一个画布
 UN KNOW USE = imagick_newimagelist 
错误句柄类bool = imagick_iserror([image handle])最后一次执行是否成功
 rason_string = imagick_failedreason([image handle])如果执行iImagick函数返回假将可以从本函数抛出失败
 desc_string = imagick_faileddescription([image handle])显示抛出的异常描述
 error_string = imagick_error([image handle])返回错误内容
获取图片信息类image_width = imagick_getwidth([image handle])获得图片宽度
 image_height = imagick_getheight([image handle])获得图片高度
 mime_string = imagick_getmimetype([image handle])获得图片MIME类型
 depth_int = imagick_getimagedepth([image handle])获得图片DEPTH值
 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])放大图片
字体设置类bool = imagick_setfontsize([image handle],[size])设置字体大小
 UN KNOW USE imagick_setfontstyle 
 bool = imagick_setfontface([image handle],[Font Name])设置采用的字体
绘图类bool = imagick_begindraw([image handle])开始在一个image上绘画
 bool = imagick_drawannotation([image handle],[x],[y],[text])在image上的x y开始画一些文字符号
 bool = imagick_drawrectangle([image handle],[up x],[up y],[low x],[low 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 value 0.8 - 2.3])图象GAMMA调整
 bool = imagick_level([image handle],[gamma value 0.8 - 2.3])图象GAMMA调整
 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])在图片上化一个边框
 UN KNOW USE imagick_frame 
 bool = imagick_raise([image handle],[ x starting position of border ],[ y starting position of border ],[ width of border],[ height of border],[raise non-zero])浮雕效果
效率滤镜类bool = imagick_charcoal([image handle],[the radius of pixel neighborhood],[the standard deviation of the Gaussian, in pixels])碳笔
 bool = imagick_implode([image handle],[define the extent of the implosion])内曝效果
 bool = imagick_oilpaint([image handle],[the radius of the circular
neighborhood])
油画效果
 bool = imagick_solarize([image handle],[define the extent of solarization - this value is between 0 and MaxRGB])反转曝光
 bool = imagick_swirl([image handle],[define the tightness of the swirling
effect ])
旋涡
 bool = imagick_wave([image handle],[the amplitude of the wave],[the frequency of the wave])水波纹
图片滤镜类bool = imagick_blur([image handle],[the radius of the Gaussian, in
pixels, not counter the center pixel],[the standard deviation of the
Gaussian, in pixels])
模糊
 bool = imagick_despeckle([image handle])平滑聚焦图象
 bool = imagick_edge([image handle],[the radius of the pixel neighbor- hood; using 0 will cause a suitable radius to be selected for you])边缘锐化
 bool = imagick_emboss([image handle],[the radius of the pixel neighbor-
hood],[the standard deviation of the Gaussian, in pixels])
浮雕效果
 bool = imagick_enhance([image handle])图象增强
 bool = imagick_gaussianblur([image handle],[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([image handle],[the radius of the pixel neighbor-hood])平滑过滤图象
 bool = imagick_motionblur([image handle],[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([image handle],[the radius of the pixel neighborhood])降噪
 bool = imagick_shade阴影
 bool = imagick_sharpen锐化
 bool = imagick_spread发散
 bool = imagick_threshold临界值
 bool = imagick_unsharpmaskunsharpmask锐化
 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([image handle],[x starting position of border],[y starting position of border],[width of border],[height of border])从图片上截取
 bool = imagick_flip ([image handle])图象翻转
 bool = imagick_flop左右转换
 bool = imagick_roll 
 bool = imagick_profile 
 bool = imagick_rgbtransform色彩变更
 bool = imagick_transformrgb色彩变更
 bool = imagick_mosaic 
 bool = imagick_transparent([image handle],[color value])设置指定颜色成为透明色
图片量子化bool = imagick_ordereddither([image handle]) 
图片合成类bool = imagick_composite图象融合
图片属性设置bool = imagick_set_image_comment([image handle],[the comment to set in the image])设置图象的一些参数
 bool = imagick_set_image_quality([image handle],[quality value])设置图象的质量
句柄销毁类bool = imagick_destroyhandle([image handle])干掉指定的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

这篇关于调用 ImageMagick 的PHP函数中文文档的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/708647

相关文章

C语言字符函数和字符串函数示例详解

《C语言字符函数和字符串函数示例详解》本文详细介绍了C语言中字符分类函数、字符转换函数及字符串操作函数的使用方法,并通过示例代码展示了如何实现这些功能,通过这些内容,读者可以深入理解并掌握C语言中的字... 目录一、字符分类函数二、字符转换函数三、strlen的使用和模拟实现3.1strlen函数3.2st

讯飞webapi语音识别接口调用示例代码(python)

《讯飞webapi语音识别接口调用示例代码(python)》:本文主要介绍如何使用Python3调用讯飞WebAPI语音识别接口,重点解决了在处理语音识别结果时判断是否为最后一帧的问题,通过运行代... 目录前言一、环境二、引入库三、代码实例四、运行结果五、总结前言基于python3 讯飞webAPI语音

MySQL中COALESCE函数示例详解

《MySQL中COALESCE函数示例详解》COALESCE是一个功能强大且常用的SQL函数,主要用来处理NULL值和实现灵活的值选择策略,能够使查询逻辑更清晰、简洁,:本文主要介绍MySQL中C... 目录语法示例1. 替换 NULL 值2. 用于字段默认值3. 多列优先级4. 结合聚合函数注意事项总结C

一文教你解决Python不支持中文路径的问题

《一文教你解决Python不支持中文路径的问题》Python是一种广泛使用的高级编程语言,然而在处理包含中文字符的文件路径时,Python有时会表现出一些不友好的行为,下面小编就来为大家介绍一下具体的... 目录问题背景解决方案1. 设置正确的文件编码2. 使用pathlib模块3. 转换路径为Unicod

Python批量调整Word文档中的字体、段落间距及格式

《Python批量调整Word文档中的字体、段落间距及格式》这篇文章主要为大家详细介绍了如何使用Python的docx库来批量处理Word文档,包括设置首行缩进、字体、字号、行间距、段落对齐方式等,需... 目录关键代码一级标题设置  正文设置完整代码运行结果最近关于批处理格式的问题我查了很多资料,但是都没

Java8需要知道的4个函数式接口简单教程

《Java8需要知道的4个函数式接口简单教程》:本文主要介绍Java8中引入的函数式接口,包括Consumer、Supplier、Predicate和Function,以及它们的用法和特点,文中... 目录什么是函数是接口?Consumer接口定义核心特点注意事项常见用法1.基本用法2.结合andThen链

MySQL 日期时间格式化函数 DATE_FORMAT() 的使用示例详解

《MySQL日期时间格式化函数DATE_FORMAT()的使用示例详解》`DATE_FORMAT()`是MySQL中用于格式化日期时间的函数,本文详细介绍了其语法、格式化字符串的含义以及常见日期... 目录一、DATE_FORMAT()语法二、格式化字符串详解三、常见日期时间格式组合四、业务场景五、总结一、

C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)

《C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)》本文主要介绍了C#集成DeepSeek模型实现AI私有化的方法,包括搭建基础环境,如安装Ollama和下载DeepS... 目录前言搭建基础环境1、安装 Ollama2、下载 DeepSeek R1 模型客户端 ChatBo

golang panic 函数用法示例详解

《golangpanic函数用法示例详解》在Go语言中,panic用于触发不可恢复的错误,终止函数执行并逐层向上触发defer,最终若未被recover捕获,程序会崩溃,recover用于在def... 目录1. panic 的作用2. 基本用法3. recover 的使用规则4. 错误处理建议5. 常见错

Java中将异步调用转为同步的五种实现方法

《Java中将异步调用转为同步的五种实现方法》本文介绍了将异步调用转为同步阻塞模式的五种方法:wait/notify、ReentrantLock+Condition、Future、CountDownL... 目录异步与同步的核心区别方法一:使用wait/notify + synchronized代码示例关键