ホームページ  >  記事  >  バックエンド開発  >  ImageMagick を呼び出す PHP 関数の中国語ドキュメント

ImageMagick を呼び出す PHP 関数の中国語ドキュメント

不言
不言オリジナル
2018-04-14 17:11:391993ブラウズ

この記事では、主に ImageMagick を呼び出す PHP 関数の中国語ドキュメントを紹介します。これには、必要な友人が参照できるように共有します。使用できる関数やメソッドはソースファイルの定義から見つかります。著者は手探りでテストします。理解が難しくなりますので、サンプルコードで試してみてください。

画像ガンマ調整Picture Like GAMMA調整明るさ、彩度、色を調整反転カラー画像標準化された画像絵の装飾class写真に境界線を作成します(ピクセル近傍の半径],[ガウスの標準偏差(ピクセル単位)) (爆縮の範囲を定義する])内部被ばくの影響(円形の半径])油絵効果[画像ハンドル] ,[効果] c) 渦Bool画像フィルタークラスboolbool ブールboolboolboolboolbool 画像融合性 ピクチャ属性設定 Boolimagick_set_image_quality[画像ハンドル],[]imagick_destroyhandle[画像ハンドル]) ImageMagick コマンド実行の脆弱性の詳細な分析
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([画像ハンドル],[開始x],[開始y],[終了x],[終了y]) 線を描く
ブール = imagick_drawpoint([画像ハンドル],[x座標],[y座標]) 点を描く
bool = imagick_setfillcolor ([画像ハンドル] ,[カラー値]) 塗りつぶしの色を設定します
bool = imagick_setfillopacity([画像ハンドル],[不透明度]) 不透明度を設定します
品質向上カテゴリー bool = imagick_rotate([画像ハンドル],[度]) 画像の回転角度を設定します
bool = imagick_shear([画像ハンドル],[ x 座標],[y 座標]) 回転シアー
bool = imagick_contrast([画像ハンドル],[コントラスト値]) 上げるか下げる画像コントラスト
bool = imagick_equalize([画像ハンドル]) 色の均一性
bool = mma([画像ハンドル],[ ガンマ値 0.8 - 2.3])
bool = imagick_level([画像ハンドル],[ガンマ値 0.8 - 2.3 ])
bool = imagick_modulate([画像ハンドル],[modulate])
bool = imagick_negate( [画像ハンドル],[グレースケール値])
bool = imagick_normalize([画像ハンドル])
bool = imagick_border([画像ハンドル],[x境界線の開始位置],[y境界線の開始位置],[境界線の幅],[境界線の高さ] ])
使い方がわからないimagick_frame
bool = imagick_raise([画像ハンドル],[効果効率フィルタークラスbool = imagick_charcoal[画像ハンドル],[
] Charcoal bool = imagick_implode[画像ハンドル],[
ブール = imagick_oilpaint[画像ハンドル],[
bool
= imagick_solarize(
定義ソラリゼーションの程度 – この値は 0 と MaxRGB の間です
= Imagick_wave ( [画像ハンドル]、[波の振幅]、[波の周波数] ) 水の波紋
= imagick_blur([画像ハンドル],[中心ピクセルのカウンターではなく、ピクセル単位のガウスの半径],[
標準偏差ガウスのピクセル単位]
)ぼかし
= imagick_despeckle([画像ハンドル])滑らかに焦点を合わせた画像
= imagick_edge([画像ハンドル],[ピクセル近傍の半径。0を使用すると、適切な半径が選択されます])エッジシャープニング
= imagick_emboss([画像ハンドル],[ピクセル近傍の半径フード],[
ガウスの標準偏差(ピクセル単位)])エンボス効果
= imagick_enhance([画像ハンドル])画像強調
= imagick_gaussianblur ([画像ハンドル],[]ガウスの半径 (ピクセル単位)、中心ピクセルをカウントしません。0 を使用すると、適切な半径が選択されます],[標準 ガウスの偏差 (ピクセル単位])ガウスぼかし
= 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
= Imagick_Set_image_Comment パラメータ bool = (
品質値) 画像の品質を設定するhandle Destroy classbool = (
指定された画像ハンドルを破棄する 互換関数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
関連する推奨事項:

PHP の ImageMagick の使用

以上がImageMagick を呼び出す PHP 関数の中国語ドキュメントの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。