调用 ImageMagick 的PHP函数中文文档
这篇文章主要介绍了调用 ImageMagick 的PHP函数中文文档 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
导读:iMagick的作者并未告诉大家可以使用那些函数以及方法,这些函数和方法都是从source文件中的定义找到。作者摸索测试。请大家在有example的代码情况下做测试,不然很难用明白。
Function | Description | |
图片构造类 | 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 ],[ycoordinate ]) | 画一个点 | |
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_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([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函数中文文档的详细内容。更多信息请关注PHP中文网其他相关文章!

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

PHP 8.4 带来了多项新功能、安全性改进和性能改进,同时弃用和删除了大量功能。 本指南介绍了如何在 Ubuntu、Debian 或其衍生版本上安装 PHP 8.4 或升级到 PHP 8.4

Visual Studio Code,也称为 VS Code,是一个免费的源代码编辑器 - 或集成开发环境 (IDE) - 可用于所有主要操作系统。 VS Code 拥有针对多种编程语言的大量扩展,可以轻松编写

如果您是一位经验丰富的 PHP 开发人员,您可能会感觉您已经在那里并且已经完成了。您已经开发了大量的应用程序,调试了数百万行代码,并调整了一堆脚本来实现操作

本教程演示了如何使用PHP有效地处理XML文档。 XML(可扩展的标记语言)是一种用于人类可读性和机器解析的多功能文本标记语言。它通常用于数据存储

JWT是一种基于JSON的开放标准,用于在各方之间安全地传输信息,主要用于身份验证和信息交换。1.JWT由Header、Payload和Signature三部分组成。2.JWT的工作原理包括生成JWT、验证JWT和解析Payload三个步骤。3.在PHP中使用JWT进行身份验证时,可以生成和验证JWT,并在高级用法中包含用户角色和权限信息。4.常见错误包括签名验证失败、令牌过期和Payload过大,调试技巧包括使用调试工具和日志记录。5.性能优化和最佳实践包括使用合适的签名算法、合理设置有效期、

字符串是由字符组成的序列,包括字母、数字和符号。本教程将学习如何使用不同的方法在PHP中计算给定字符串中元音的数量。英语中的元音是a、e、i、o、u,它们可以是大写或小写。 什么是元音? 元音是代表特定语音的字母字符。英语中共有五个元音,包括大写和小写: a, e, i, o, u 示例 1 输入:字符串 = "Tutorialspoint" 输出:6 解释 字符串 "Tutorialspoint" 中的元音是 u、o、i、a、o、i。总共有 6 个元

静态绑定(static::)在PHP中实现晚期静态绑定(LSB),允许在静态上下文中引用调用类而非定义类。1)解析过程在运行时进行,2)在继承关系中向上查找调用类,3)可能带来性能开销。

PHP的魔法方法有哪些?PHP的魔法方法包括:1.\_\_construct,用于初始化对象;2.\_\_destruct,用于清理资源;3.\_\_call,处理不存在的方法调用;4.\_\_get,实现动态属性访问;5.\_\_set,实现动态属性设置。这些方法在特定情况下自动调用,提升代码的灵活性和效率。
