位置: 编程技术 - 正文

PHP:imagesetinterpolation()的用法_GD库图像处理函数

编辑:rootadmin
imagesetinterpolation

推荐整理分享PHP:imagesetinterpolation()的用法_GD库图像处理函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.5.0)

imagesetinterpolation — Set the interpolation method

说明 bool imagesetinterpolation ( resource $image [, int $method = IMG_BILINEAR_FIXED ] )

Sets the interpolation method, setting an interpolation method affects the rendering of various functions in GD, such as the imagerotate() function.

参数

imagePHP:imagesetinterpolation()的用法_GD库图像处理函数

由图象创建函数(例如imagecreatetruecolor())返回的图象资源。

method

The interpolation method, which can be one of the following: IMG_BELL: Bell filter. IMG_BESSEL: Bessel filter. IMG_BICUBIC: Bicubic interpolation. IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation. IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (default (also on image creation)). IMG_BLACKMAN: Blackman window function. IMG_BOX: Box blur filter. IMG_BSPLINE: Spline interpolation. IMG_CATMULLROM: Cubic Hermite spline interpolation. IMG_GAUSSIAN: Gaussian function. IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation. IMG_HERMITE: Hermite interpolation. IMG_HAMMING: Hamming filter. IMG_HANNING: Hanning filter. IMG_MITCHELL: Mitchell filter. IMG_POWER: Power interpolation. IMG_QUADRATIC: Inverse quadratic interpolation. IMG_SINC: Sinc function. IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation. IMG_WEIGHTED4: Weighting filter. IMG_TRIANGLE: Triangle interpolation.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

范例

Example #1 imagesetinterpolation() example

<?php//Loadanimage$im=imagecreate(,);//BydefaultinterpolationisIMG_BILINEAR_FIXED,switch//tousethe'Mitchell'filter:imagesetinterpolation($im,IMG_MITCHELL);//Continuetoworkwith$im...?>

注释

Changing the interpolation method affects the following functions when rendering: imageaffine() imagerotate() imagescale()

PHP:imagerotate()的用法_GD库图像处理函数 imagerotate(PHP4=4.3.0,PHP5)imagerotate用给定角度旋转图像说明resourceimagerotate(resource$image,float$angle,int$bgd_color[,int$ignore_transparent=0])将src_im图像用给定的angle角度

PHP:imagescale()的用法_GD库图像处理函数 imagescale(PHP5=5.5.0)imagescaleScaleanimageusingthegivennewwidthandheight说明resourceimagescale(resource$image,int$new_width[,int$new_height=-1[,int$mode=IMG_BILINEAR_FIXED]])Warning本函数还未

PHP:imagesetbrush()的用法_GD库图像处理函数 imagesetbrush(PHP5=5.5.0)imagesetbrush设定画线用的画笔图像说明boolimagesetbrush(resource$image,resource$brush)当用特殊的颜色IMG_COLOR_BRUSHED或IMG_COLOR_STYLEDBRUSHED绘画时,im

标签: PHP:imagesetinterpolation()的用法_GD库图像处理函数

本文链接地址:https://www.jiuchutong.com/biancheng/284751.html 转载请保留说明!

上一篇:PHP:imagesetpixel()的用法_GD库图像处理函数

下一篇:PHP:imagerotate()的用法_GD库图像处理函数(php imagettftext)

  • 税务ukey与税控盘的区别
  • 利润总额亏损还有没有所得税
  • 企业为员工代扣代缴个人所得税分录
  • 红冲以后怎么做账
  • 个人保险发票能抵扣个税
  • 免征增值税发票税率
  • 没有土地使用证可以过户吗
  • 特许权使用费计算公式
  • 财政局专利补助政策
  • 房屋租赁合同印花税计税依据
  • 研发物资
  • 纳税申报意思
  • 金税盘年费如何做账
  • 广告费扣税
  • 预提保障金和交税的区别
  • 出口转内销申报需要先做出口退税吗
  • 内部员工购买公司产品
  • 尚未支付的货款属于什么会计要素
  • 跨年的费用可以直接入账吗
  • 冲销上月多记收入
  • nmap命令
  • 超市消费券买什么好
  • 农民专业合作社法
  • 医保和养老保险一样吗
  • 公司员工个税怎么交
  • 工业企业缴纳的税费种类包括
  • 一般贸易和进料加工贸易的区别
  • 机器学习-10 聚类算法
  • codewriter怎么运行
  • PHP:imagecopyresampled()的用法_GD库图像处理函数
  • 麦地那老城
  • pa等比例缩放
  • php判断数据库是否连接成功
  • codeignitor
  • vscode安装python3
  • html5旅游网页设计
  • react usereducer
  • uniapp h5路由模式
  • 金税盘如何读入新购电子发票?
  • 资产负债表不能有负数吗
  • 税款已缴未入库怎么处理
  • 财政补贴收入要交增值税税率
  • 个人补缴的医保有钱返吗
  • 制造费用怎么摊销到成本?
  • 购入不需要安装的固定资产会计科目
  • 在我国土地使用权分为哪几类
  • 公司从员工工资扣水电费
  • 印花税退还
  • 会计账簿的扉页只需填列账簿启用日期和经管人员一览表
  • 其他应付款的核算范围包括应付短期租赁
  • 自助回单打印和网银回单
  • 备查账的登记主要以什么来表述
  • mysql高级功能
  • 解读分布式光伏开发前期工作要点及措施
  • 序列号错误或不完整
  • 家庭版的海鲜大杂烩
  • linux nohup命令详解
  • mac怎么恢复出厂设置
  • 查看win8.1版本
  • linux共享内存同步机制
  • make_sock: could not bind to address 0.0.0.0:443
  • java timer
  • li的简单应用
  • js旋转函数
  • js内置对象方法有哪些
  • Unity3D之Vector3.Dot和Vector3.Cross的使用
  • 获取input输入值
  • nodejs 爬虫
  • 安卓中textview
  • Unity3d IOS 64 IL2CPP迁移之 AStarPath JosnFX 错误
  • unity shooter
  • android StrictMode使用
  • jquery.filedownload.js
  • 等待窗口
  • JavaScript indexOf方法入门实例(计算指定字符在字符串中首次出现的位置)
  • 税务核销
  • 直系亲属房产买卖过户税费
  • 运输费属于什么会计分录
  • 增值税申报表如何导出
  • 上海各区财政收入排名
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设