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

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

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

瀏覽:31日期: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久久,三上悠亚国产精品一区二区三区
国产精品网站在线看| 欧美激情三区| 精品黄色一级片| 青青草国产成人99久久| 伊人成人在线视频| 伊人精品一区| 久久久久久美女精品| 欧美日韩免费看片| 国产美女高潮在线观看| 国产精品theporn| 丝袜美腿高跟呻吟高潮一区| 色老板在线视频一区二区| 久久久人人人| 婷婷六月综合| 欧美亚洲三级| 精品国产乱码| 在线国产日韩| 精品伊人久久| 亚洲午夜免费| 亚洲伦乱视频| 久久激情av| 国产精品人人爽人人做我的可爱 | 在线观看亚洲精品福利片| 18国产精品| 日韩大片在线观看| 国产探花在线精品| 亚洲一区二区三区四区五区午夜| 精品视频免费| 婷婷亚洲成人| 亚洲一级影院| 国产超碰精品| 国产一区二区三区不卡视频网站 | 国内揄拍国内精品久久| 国产精品社区| 免费污视频在线一区| 欧美激情视频一区二区三区在线播放| 久久午夜精品| 婷婷久久一区| 亚洲a一区二区三区| 国产 日韩 欧美 综合 一区| 国产欧美自拍| 综合色就爱涩涩涩综合婷婷| 自由日本语亚洲人高潮| www成人在线视频| 色综合www| 日产精品一区二区| 久久精品凹凸全集| 日韩国产欧美在线播放| 久久精品一区二区三区中文字幕| 极品av在线| 在线精品国产亚洲| 97精品一区| 在线一区二区三区视频| 成人日韩av| 免费精品视频| 欧美日韩国产传媒| 日韩午夜一区| 亚洲tv在线| 国产精品网站在线看| 国产精品a久久久久| 国产高清亚洲| 国产一区二区三区不卡av| 综合一区av| 国产精品**亚洲精品| 精品日产乱码久久久久久仙踪林| 国产伊人久久| 久久久久久黄| 中文字幕亚洲影视| 国产欧美欧美| 日韩欧美一区二区三区在线观看| 欧美亚洲国产一区| 日韩精品久久久久久久软件91| 国产精品videossex| 亚洲www啪成人一区二区| 在线综合亚洲| 国产情侣一区在线| 日韩免费在线| 免费精品视频| 国产日韩亚洲| av一区二区高清| 日韩中文字幕在线一区| 精品三区视频| 极品日韩av| 国产精品chinese| 亚洲免费激情| 福利精品在线| 亚州av一区| 中文另类视频| 国产精品亚洲成在人线| 午夜国产精品视频| 福利精品一区| 国产精品videossex久久发布| 中文字幕在线高清| 国产欧美日韩影院| 视频一区欧美日韩| 久久精品免费一区二区三区| 91综合久久爱com| 噜噜噜躁狠狠躁狠狠精品视频| 夜鲁夜鲁夜鲁视频在线播放| 你懂的亚洲视频| 欧美亚洲免费| 日韩一二三区在线观看| 国产伦理一区| 少妇精品久久久一区二区三区| 亚洲精品小说| 日韩欧美二区| 四虎8848精品成人免费网站| 男人操女人的视频在线观看欧美| 深夜福利视频一区二区| 麻豆成人91精品二区三区| 日韩一区二区三区精品视频第3页| 一区在线免费| 国产精品美女| 免费日韩一区二区| 亚洲国产日韩欧美在线| 好看的av在线不卡观看| 久久蜜桃资源一区二区老牛| 在线一区av| 欧美一区二区三区高清视频| 色爱av综合网| 午夜欧美精品| 亚洲综合国产| 中文无码日韩欧| 中文精品电影| 国产精品亚洲片在线播放| 国产精品1区| 精品中文字幕一区二区三区| 精品一区二区三区的国产在线观看 | 高清av一区| 免费一级欧美在线观看视频 | 日韩欧美精品综合| 国产精品7m凸凹视频分类| 男女性色大片免费观看一区二区 | 你懂的亚洲视频| 97精品中文字幕| 偷拍欧美精品| 久久最新视频| 国产精品久久久久久模特| 韩国久久久久久| 亚洲精品午夜av福利久久蜜桃| 亚洲在线免费| 精品一区二区三区免费看| 亚洲一区二区毛片| 日韩1区2区3区| 国产精品超碰| 免费看黄色91| 新版的欧美在线视频| 亚洲精品中文字幕99999| 亚洲日本网址| 欧美激情一区| 日本中文字幕一区二区视频| 日韩精品诱惑一区?区三区| 亚洲日韩中文字幕一区| av高清不卡| 另类欧美日韩国产在线| 欧洲一区二区三区精品| 久久久久久久久成人| 奇米色欧美一区二区三区| 激情婷婷欧美| 亚洲www啪成人一区二区| 久久免费影院| 美女精品视频在线| 久久精品99久久久| 亚洲精品激情| 亚洲一区欧美| 日韩精品视频网站| 国产婷婷精品| 亚洲精品小说| 亚洲区欧美区| 欧美不卡在线| 国产精品久久久久久av公交车| 中文字幕在线免费观看视频| 亚洲精品极品| 欧美.日韩.国产.一区.二区| 国产精品久久久久久妇女| 99在线精品免费视频九九视| 国产精品二区影院| 欧美影院三区| 97精品一区二区| 国产日本精品| 综合激情网站| 女人天堂亚洲aⅴ在线观看| 日韩精品不卡一区二区| 麻豆视频久久| 国产精品色在线网站| 免费精品视频| 精品在线99| 色婷婷精品视频| 日韩大片在线| 黄色在线网站噜噜噜| 精品国产乱码久久久久久樱花 | 国产精品日本一区二区不卡视频| 亚洲精选91| 一区二区国产在线| 亚洲一区二区三区无吗| 亚洲精品麻豆| 欧美亚洲色图校园春色| 国产精品蜜月aⅴ在线| 亚洲色图网站| 日韩av一级片|