日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術文章
文章詳情頁

PHP擴展之圖像處理2——Gmagick庫使用示例及相關類和函數

瀏覽:28日期:2022-09-15 17:13:36
使用示例

<?php//初始化一個新的Gmagick對象$image?=?new?Gmagick(’example.jpg’);//通過加載的圖片生成縮略圖(保持縱橫比).?$image->thumbnailImage(100,?0);//創建圖片的邊框,?然后模擬圖像使其看上去像一幅油畫$image->borderImage('yellow',?8,?8)->oilPaintImage(0.3);//將當前圖片寫入到一個文件$image->write(’example_thumbnail.jpg’);?>相關和類函數

1.Gmagick類

Gmagick::addimage?— 添加一張新的圖片到 Gmagick 對象圖片列表Gmagick::addnoiseimage?— 添加隨機噪聲到圖片Gmagick::annotateimage?— 為圖片添加文字注釋Gmagick::blurimage?— 為圖像添加模糊濾鏡效果Gmagick::borderimage?— 在圖像四周添加邊框Gmagick::charcoalimage?— 模擬素描Gmagick::chopimage?— 從圖像中移除一塊區域Gmagick::clear?— 清除與Gmagick對象相關的所有資源Gmagick::commentimage?— 添加注釋到圖像Gmagick::compositeimage?— 合成一個圖像到另一個圖像Gmagick::__construct?— Gmagick構造器Gmagick::cropimage?— 裁剪獲取圖片指定區域Gmagick::cropthumbnailimage?— 先縮放再裁剪從而創建一個指定尺寸的縮略圖Gmagick::current?— 當前目標Gmagick::cyclecolormapimage?— Displaces an image’s colormapGmagick::deconstructimages?— Returns certain pixel differences between imagesGmagick::despeckleimage?— The despeckleimage purposeGmagick::destroy?— 銷毀Gmagick對象,釋放內存空間Gmagick::drawimage?— Renders the GmagickDraw object on the current imageGmagick::edgeimage?— Enhance edges within the imageGmagick::embossimage?— Returns a grayscale image with a three-dimensional effectGmagick::enhanceimage?— Improves the quality of a noisy imageGmagick::equalizeimage?— Equalizes the image histogramGmagick::flipimage?— Creates a vertical mirror imageGmagick::flopimage?— The flopimage purposeGmagick::frameimage?— Adds a simulated three-dimensional borderGmagick::gammaimage?— Gamma-corrects an imageGmagick::getcopyright?— Returns the GraphicsMagick API copyright as a stringGmagick::getfilename?— The filename associated with an image sequenceGmagick::getimagebackgroundcolor?— Returns the image background colorGmagick::getimageblueprimary?— Returns the chromaticy blue primary pointGmagick::getimagebordercolor?— Returns the image border colorGmagick::getimagechanneldepth?— Gets the depth for a particular image channelGmagick::getimagecolors?— Returns the color of the specified colormap indexGmagick::getimagecolorspace?— Gets the image colorspaceGmagick::getimagecompose?— Returns the composite operator associated with the imageGmagick::getimagedelay?— Gets the image delayGmagick::getimagedepth?— Gets the depth of the imageGmagick::getimagedispose?— Gets the image disposal methodGmagick::getimageextrema?— Gets the extrema for the imageGmagick::getimagefilename?— Returns the filename of a particular image in a sequenceGmagick::getimageformat?— Returns the format of a particular image in a sequenceGmagick::getimagegamma?— Gets the image gammaGmagick::getimagegreenprimary?— Returns the chromaticy green primary pointGmagick::getimageheight?— 返回圖像高度Gmagick::getimagehistogram?— Gets the image histogramGmagick::getimageindex?— Gets the index of the current active imageGmagick::getimageinterlacescheme?— Gets the image interlace schemeGmagick::getimageiterations?— Gets the image iterationsGmagick::getimagematte?— Return if the image has a matte channelGmagick::getimagemattecolor?— Returns the image matte colorGmagick::getimageprofile?— Returns the named image profile.Gmagick::getimageredprimary?— Returns the chromaticity red primary pointGmagick::getimagerenderingintent?— Gets the image rendering intentGmagick::getimageresolution?— Gets the image X and Y resolutionGmagick::getimagescene?— Gets the image sceneGmagick::getimagesignature?— Generates an SHA-256 message digestGmagick::getimagetype?— Gets the potential image type.Gmagick::getimageunits?— Gets the image units of resolutionGmagick::getimagewhitepoint?— Returns the chromaticity white pointGmagick::getimagewidth?— 返回圖像寬度Gmagick::getpackagename?— Returns the GraphicsMagick package name.Gmagick::getquantumdepth?— Returns the Gmagick quantum depth as a string.Gmagick::getreleasedate?— Returns the GraphicsMagick release date as a string.Gmagick::getsamplingfactors?— Gets the horizontal and vertical sampling factor.Gmagick::getsize?— 返回與當前gmagick對象相關聯的尺寸Gmagick::getversion?— 返回當前GraphicsMagick API的版本Gmagick::hasnextimage?— 檢查對象是否包含更多圖像Gmagick::haspreviousimage?— Checks if the object has a previous imageGmagick::implodeimage?— Creates a new image as a copyGmagick::labelimage?— Adds a label to an image.Gmagick::levelimage?— Adjusts the levels of an imageGmagick::magnifyimage?— Scales an image proportionally 2xGmagick::mapimage?— Replaces the colors of an image with the closest color from a reference image.Gmagick::medianfilterimage?— Applies a digital filterGmagick::minifyimage?— Scales an image proportionally to half its sizeGmagick::modulateimage?— Control the brightness, saturation, and hueGmagick::motionblurimage?— Simulates motion blurGmagick::newimage?— 創建一個新的圖像Gmagick::nextimage?— 移動到下一張圖片Gmagick::normalizeimage?— Enhances the contrast of a color imageGmagick::oilpaintimage?— 模擬油畫效果(使用示例:本篇文章開頭的示例代碼)Gmagick::previousimage?— Move to the previous image in the objectGmagick::profileimage?— Adds or removes a profile from an imageGmagick::quantizeimage?— Analyzes the colors within a reference imageGmagick::quantizeimages?— The quantizeimages purposeGmagick::queryfontmetrics?— Returns an array representing the font metricsGmagick::queryfonts?— Returns the configured fontsGmagick::queryformats?— Returns formats supported by Gmagick.Gmagick::radialblurimage?— Radial blurs an imageGmagick::raiseimage?— Creates a simulated 3d button-like effectGmagick::read?— 從文件名中讀取圖像Gmagick::readimage?— 從文件名中讀取圖像Gmagick::readimageblob?— Reads image from a binary stringGmagick::readimagefile?— The readimagefile purposeGmagick::reducenoiseimage?— Smooths the contours of an imageGmagick::removeimage?— Removes an image from the image listGmagick::removeimageprofile?— Removes the named image profile and returns itGmagick::resampleimage?— Resample image to desired resolutionGmagick::resizeimage?— 調整圖像尺寸Gmagick::rollimage?— 偏移圖像Gmagick::rotateimage?— 旋轉圖片Gmagick::scaleimage?— 調整圖片大小Gmagick::separateimagechannel?— Separates a channel from the imageGmagick::setfilename?— 在讀取或者寫入圖片之前設置文件名Gmagick::setimagebackgroundcolor?— 設置圖像背景色Gmagick::setimageblueprimary?— Sets the image chromaticity blue primary point.Gmagick::setimagebordercolor?— 設置圖像邊框顏色.Gmagick::setimagechanneldepth?— Sets the depth of a particular image channelGmagick::setimagecolorspace?— Sets the image colorspaceGmagick::setimagecompose?— Sets the image composite operatorGmagick::setimagedelay?— Sets the image delayGmagick::setimagedepth?— Sets the image depthGmagick::setimagedispose?— Sets the image disposal methodGmagick::setimagefilename?— 在一個序列中設置特定圖片的文件名Gmagick::setimageformat?— Sets the format of a particular imageGmagick::setimagegamma?— Sets the image gammaGmagick::setimagegreenprimary?— TSets the image chromaticity green primary point.Gmagick::setimageindex?— Set the iterator to the position in the image list specified with the index parameterGmagick::setimageinterlacescheme?— Sets the interlace scheme of the image.Gmagick::setimageiterations?— Sets the image iterations.Gmagick::setimageprofile?— Adds a named profile to the Gmagick objectGmagick::setimageredprimary?— Sets the image chromaticity red primary point.Gmagick::setimagerenderingintent?— Sets the image rendering intentGmagick::setimageresolution?— Sets the image resolutionGmagick::setimagescene?— 設置圖片場景Gmagick::setimagetype?— 設置圖片類型Gmagick::setimageunits?— Sets the image units of resolution.Gmagick::setimagewhitepoint?— Sets the image chromaticity white point.Gmagick::setsamplingfactors?— Sets the image sampling factors.Gmagick::setsize?— Sets the size of the Gmagick objectGmagick::shearimage?— Creating a parallelogramGmagick::solarizeimage?— Applies a solarizing effect to the imageGmagick::spreadimage?— Randomly displaces each pixel in a blockGmagick::stripimage?— Strips an image of all profiles and commentsGmagick::swirlimage?— Swirls the pixels about the center of the imageGmagick::thumbnailimage?— Changes the size of an imageGmagick::trimimage?— Remove edges from the imageGmagick::write?— 將圖片寫入到指定文件名,如果文件名為空,則圖片寫入到Gmagick::ReadImage()或者Gmagick::SetImageFilename()設置的文件名中。Gmagick::writeimage?— 將圖片寫入指定文件名,與Gmagick::write的區別在于writeimage函數包含一個可選的布爾參數all_frames。

2.GmagickDraw 類

GmagickDraw::annotate?— Draws text on the imageGmagickDraw::arc?— Draws an arcGmagickDraw::bezier?— Draws a bezier curveGmagickDraw::ellipse?— Draws an ellipse on the imageGmagickDraw::getfillcolor?— Returns the fill colorGmagickDraw::getfillopacity?— Returns the opacity used when drawingGmagickDraw::getfont?— Returns the fontGmagickDraw::getfontsize?— Returns the font pointsizeGmagickDraw::getfontstyle?— Returns the font styleGmagickDraw::getfontweight?— Returns the font weightGmagickDraw::getstrokecolor?— Returns the color used for stroking object outlinesGmagickDraw::getstrokeopacity?— Returns the opacity of stroked object outlinesGmagickDraw::getstrokewidth?— Returns the width of the stroke used to draw object outlinesGmagickDraw::gettextdecoration?— Returns the text decorationGmagickDraw::gettextencoding?— Returns the code set used for text annotationsGmagickDraw::line?— The line purposeGmagickDraw::point?— Draws a pointGmagickDraw::polygon?— Draws a polygonGmagickDraw::polyline?— Draws a polylineGmagickDraw::rectangle?— Draws a rectangleGmagickDraw::rotate?— Applies the specified rotation to the current coordinate spaceGmagickDraw::roundrectangle?— Draws a rounded rectangleGmagickDraw::scale?— Adjusts the scaling factorGmagickDraw::setfillcolor?— Sets the fill color to be used for drawing filled objects.GmagickDraw::setfillopacity?— The setfillopacity purposeGmagickDraw::setfont?— Sets the fully-specified font to use when annotating with text.GmagickDraw::setfontsize?— Sets the font pointsize to use when annotating with text.GmagickDraw::setfontstyle?— Sets the font style to use when annotating with textGmagickDraw::setfontweight?— Sets the font weightGmagickDraw::setstrokecolor?— Sets the color used for stroking object outlines.GmagickDraw::setstrokeopacity?— Specifies the opacity of stroked object outlines.GmagickDraw::setstrokewidth?— Sets the width of the stroke used to draw object outlines.GmagickDraw::settextdecoration?— Specifies a decorationGmagickDraw::settextencoding?— Specifies specifies the text code set

3.GmagickPixel 類

GmagickPixel::__construct?— The GmagickPixel constructorGmagickPixel::getcolor?— Returns the colorGmagickPixel::getcolorcount?— Returns the color count associated with this colorGmagickPixel::getcolorvalue?— Gets the normalized value of the provided color channelGmagickPixel::setcolor?— Sets the colorGmagickPixel::setcolorvalue?— Sets the normalized value of one of the channels
標簽: PHP
相關文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
日韩美女国产精品| 精品久久影院| 欧美午夜网站| 久久精品国产68国产精品亚洲| 中文字幕一区久| 国产精品99精品一区二区三区∴ | 大香伊人久久精品一区二区| 久久精品国产一区二区| 日韩欧美四区| 99久久久久| 亚洲我射av| 精品成av人一区二区三区| 97国产成人高清在线观看| 久久久久久久久久久9不雅视频| 91精品国产成人观看| 久久影院资源站| 婷婷精品在线| 91久久亚洲| 色婷婷久久久| av在线最新| 美女久久99| 青青草国产成人99久久| 91久久黄色| 日韩免费一区| 欧美精品福利| 亚欧洲精品视频在线观看| 欧美一区二区三区激情视频| 亚洲精品a级片| 日本а中文在线天堂| 91亚洲精品在看在线观看高清| 国产精品99久久免费观看| 日本成人在线不卡视频| 老司机精品久久| 亚洲一区二区三区高清| 国产91在线播放精品| 悠悠资源网久久精品| 国产一区国产二区国产三区| 九九久久国产| 久久亚洲精品中文字幕| 日韩超碰人人爽人人做人人添| 国产精品美女久久久久久不卡| 激情亚洲影院在线观看| 在线看片福利| 精品成人18| 久久精品女人| 国产精品二区影院| 欧美伊人影院| 国产免费av一区二区三区| 日本高清久久| 91福利精品在线观看| 日本不卡视频在线| 亚洲激情av| 免费人成网站在线观看欧美高清| 国产精品久久| 日本不卡免费高清视频在线| 亚洲一区二区三区中文字幕在线观看| 91日韩在线| 日韩在线第七页| 成人在线视频免费| 国产九一精品| 高清日韩欧美| 久久久国产精品一区二区中文| 日本亚洲欧洲无免费码在线| 久久中文字幕av| 激情综合亚洲| 亚洲免费网址| 日本a级不卡| 日韩精品免费视频人成| 久久精品 人人爱| 麻豆视频观看网址久久| 国产91在线精品| 中文字幕系列一区| 欧美1级日本1级| 久久aⅴ国产紧身牛仔裤| 中文不卡在线| 久久精品超碰| 中文字幕在线免费观看视频| 亚洲精品伦理| 热三久草你在线| 在线综合视频| 亚洲精品少妇| 欧美黄色精品| 久久久成人网| 中文字幕亚洲精品乱码| 视频一区在线视频| 日韩精品a在线观看91| 精品免费在线| 亚洲精品成人| 国产亚洲一区| 欧美aa在线观看| 视频在线观看一区二区三区| 久久久夜夜夜| 91麻豆精品激情在线观看最新| 亚洲在线网站| 久久精品免费看| 亚洲激情国产| 欧美一区二区三区久久| 成人午夜精品| 亚洲视频国产| 成人在线免费观看91| 最新亚洲一区| 国产精品香蕉| 国产综合精品| 国产日韩视频| 久久久久久久久久久9不雅视频| 国产精品tv| 亚洲一区日韩| 久久久国产精品网站| 亚洲无线一线二线三线区别av| 91亚洲国产| 日韩高清在线不卡| 日韩av一级| 欧美日韩xxxx| 欧美va天堂| 国产精品探花在线观看| 一区二区三区视频免费观看| 在线亚洲人成| 欧美另类中文字幕| 不卡视频在线| 老司机免费视频一区二区三区| 国产精品嫩模av在线| 日韩午夜精品| 国产一区二区三区亚洲综合| 久久久久伊人| 国产视频网站一区二区三区| 91精品国产经典在线观看| 久久久五月天| 久久国产日韩欧美精品| 蜜桃精品在线| 国产日韩亚洲| 一区二区电影在线观看| 桃色av一区二区| 91综合久久爱com| 亚洲一区二区三区免费在线观看| 午夜在线视频观看日韩17c| 国产一区丝袜| 亚洲资源网站| 黄色成人精品网站| 国产suv精品一区二区四区视频 | 成人在线视频免费看| 国产日韩亚洲| 久久av一区| 99热国内精品| 久久精品一区二区三区中文字幕| 久久99精品久久久久久园产越南| 国产成人精品一区二区三区视频| 黄色在线观看www| 日韩av资源网| 中国女人久久久| 中文另类视频| 久久精品亚洲| 国产精品免费精品自在线观看| 久久精品国产网站| 鲁大师影院一区二区三区| 精品国产乱码| 国产日韩欧美一区二区三区 | 视频一区二区三区中文字幕| 欧美亚洲国产日韩| 免费视频久久| 国产一区二区中文| 日韩精品免费一区二区三区| 欧美特黄a级高清免费大片a级| 日本一区二区三区中文字幕| 精品国产日韩欧美精品国产欧美日韩一区二区三区 | 日韩一区精品视频| 中文另类视频| 日韩国产一区二区三区| 福利视频一区| 精品视频99| 丁香婷婷久久| sm捆绑调教国产免费网站在线观看| 欧美成人综合| 狠狠操综合网| 电影91久久久| 欧美国产91| 亚洲视频国产| 在线精品亚洲欧美日韩国产| 丝袜a∨在线一区二区三区不卡 | 国产精品调教| 日韩精品久久理论片| 欧美在线亚洲综合一区| 蜜臀久久精品| 理论片午夜视频在线观看| 精品国产亚洲一区二区在线观看| 午夜久久美女| 综合一区av| 日韩精品免费一区二区夜夜嗨 | 999精品色在线播放| 精品一区二区三区免费看| 国产欧美在线| 清纯唯美亚洲综合一区| 欧美视频一区| 国产剧情在线观看一区| 国产精品66| 国产成人精品三级高清久久91| 一级成人国产| 国产精品香蕉| 久久99久久人婷婷精品综合| 亚洲尤物在线| 香蕉久久夜色精品国产|