位置: 编程技术 - 正文

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)

  • 出纳与会计现金对不上
  • 收到以前年度银行手续费发票
  • 其他债权投资是资产还是负债
  • 查找出资产负债表的软件
  • 小规模报企业所得税吗
  • 税务逾期记录怎么消除不了
  • 发票抬头类型怎么选 个人不能报销吗
  • 本期应纳税额减征额怎么填写
  • 纳税总额和实际上缴税费总额
  • 公司为其他企业提供担保,担保对象可以是公司股东吗
  • 中外合作合资
  • 商业用房怎么缴税
  • 债权性投资损失账务处理
  • 电子缴税付款凭证怎么做账
  • 领备用金时会计怎么做分录
  • 国际货运代理免税备案取消了吗
  • 核定征收的企业需要做账吗
  • 财会〔2017〕22号:《企业会计准则第14号收入》的通知
  • 关于医疗服务质量的医疗服务要素
  • 城建税及教育费附加计提表
  • 马克龙成就
  • 房开企业增值税确认收入时间
  • 不动产进项税额怎么算
  • 委托加工物资怎么入账
  • 计提外币借款利息
  • 去年进项税没有抵扣了
  • basic run
  • mac auto tune
  • 酒店布草洗涤赔偿怎样折旧
  • 增值税征税范围中的货物包括
  • 阿尔卑斯山城市
  • 注销公司需要缴纳注册资金吗
  • 招聘退休人员北京宿管
  • 以前年度的销售退回,冲减哪年的
  • thinkphp 模块
  • css3知识总结
  • 存货盘盈的账务处理入什么费用
  • 进口货物没有发票怎么入账,报税时怎么填
  • 红字写信是什么意思
  • 公章盖错在旁边加盖正确的说明
  • 长期借款主要包括哪些
  • 固定资产折旧率如何计算
  • mongo认证失败
  • 企业净利率多少算高
  • 经营性存款人罚款
  • 建筑行业会计做账流程及会计分录
  • 房地产开发公司注册资金要求
  • 企业期末预收账款怎么算
  • 预缴增值税销售额是含税还是不含税的开票金额
  • 负数发票开错了是否可以作废?
  • 工业增加值计算表(按生产法)
  • 财政收据使用范围
  • 银行贷款利息支出税前扣除标准
  • 对公账户可以取钱出来吗
  • 年中重新建账还要年初数吗?
  • 什么计提折旧什么不计提折旧
  • MSSQL转MYSQL,gb2312转utf-8无乱码解决方法
  • 微软停止更新win7
  • 如何更改centos的语言
  • fedora linux安装教程
  • 怎么安装win7系统不占硬盘空间呢
  • 怎样打开windows设置页面
  • 如何查看win10版本是不是正版
  • centos7启动卡在界面
  • rteng7.exe - rteng7是什么进程 有什么用
  • linux手动设置ip指令
  • nodejs中art-template模板语法的引入及冲突解决方案
  • bat怎么设置
  • cocos2d-x教程
  • OpenGL Framebuffer Object (FBO)
  • 批处理在windows中的典型应用
  • 教学实例分析怎么写
  • 基于JQuery的$.ajax方法进行异步请求导致页面闪烁的解决办法
  • 南通税务网站
  • 浙江国地税联合申报系统官网
  • 吉林省电子税务局官网
  • 中国税务网官网1732171695993732.2418.61431871
  • 设区市是哪里
  • 收取广告费收入怎么入账
  • 西安医疗保险官网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设