呼叫 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 效果]) | 旋渦 | |
bool==imagick_wave( [影像句柄],[波的振幅],[波的頻率] | )水波紋 | |
##圖片過濾類別 |
bool = imagick_blur([圖像句柄],[的半徑高斯,以 像素為單位,不與中心像素相對],[高斯的標準差,以像素為單位 ]) | 模糊|
#bool# = imagick_despeckle([影像句柄]) | #平滑焦點圖層||
##bool | = imagick_edge([影像句柄],[像素鄰域的半徑;使用0將為您選擇合適的半徑])#邊緣銳利化 | |
bool | = imagick_emboss([影像句柄],[像素鄰居的半徑-hood] ,[ 高斯的標準差,以像素為單位])浮雕效果 |
|
bool | = imagick_enhance( [圖像句柄])快照增強 | |
##bool | =imagick_gaussianblur([影像句柄],[高斯半徑,以像素為單位,不包含中心像素;使用 0 將導致為您選擇合適的半徑],[標準 高斯偏差,以像素為單位])高斯模糊 | # |
bool | =imagick_medianfilter([影像句柄],[像素鄰域的半徑])平滑濾波截圖 | ## |
imagick_motionblur | ([影像句柄],[高斯半徑,單位為像素,不與中心像素相對],[ 的標準差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_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

CakePHP 是 PHP 的開源框架。它旨在使應用程式的開發、部署和維護變得更加容易。 CakePHP 基於類似 MVC 的架構,功能強大且易於掌握。模型、視圖和控制器 gu

Visual Studio Code,也稱為 VS Code,是一個免費的原始碼編輯器 - 或整合開發環境 (IDE) - 可用於所有主要作業系統。 VS Code 擁有大量針對多種程式語言的擴展,可以輕鬆編寫

CakePHP 是一個開源MVC 框架。它使應用程式的開發、部署和維護變得更加容易。 CakePHP 有許多函式庫可以減少大多數常見任務的過載。

本教程演示瞭如何使用PHP有效地處理XML文檔。 XML(可擴展的標記語言)是一種用於人類可讀性和機器解析的多功能文本標記語言。它通常用於數據存儲
