位置: 编程技术 - 正文

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)

  • 小企业会计准则适用于哪些企业
  • 税务会计师报考科目
  • 个体户需要做利润分析吗
  • 分公司不独立核算怎么做账
  • 电子设备按5年折旧可以吗
  • 企业支付宝买东西
  • 其他应付款长期挂账如何处理
  • 小汽车的增值税怎么算
  • 财务报表中利润率怎么算
  • 外贸企业的会计
  • 企业用银行存款购买原材料
  • 出租无形资产的收入
  • 企业对固定资产进行计量时应选择的计量属性是
  • 物业费纳税
  • 2020深圳增值税税率是多少
  • 何为销项税额
  • 应交增值税下面有几个科目
  • 个税累计预缴税额税率表是年还是月
  • 分期付款购入原材料怎么做账
  • 分公司利润如何分红
  • 水利基金免税额度是多少
  • 分公司的款汇入总公司得出什么证明
  • 增值税申报表中期初未缴税额指什么
  • 筹资活动流入的现金是内源融资吗
  • 给对方发短信显示imessage
  • 携税宝费用可以抵扣增值税吗
  • 作为一名程序员应该掌握哪些语言
  • 制造业成本核算明细表
  • PHP:date_default_timezone_set()的用法_Date Time函数
  • php运算符号
  • php怎么输出文字
  • php忘记密码功能
  • element - - - - - 你不知道的loading使用方式
  • 单目测距精度
  • php array_multisort 对数组进行排序详解及实例代码
  • 购进农产品直接销售核定农产品增值税进项税额计算表
  • 删除python包
  • java第一步
  • dede织梦怎么转成zblog
  • SQL Server 2008+ Reporting Services (SSRS)使用USER登录问题
  • 内账会计成本是什么意思
  • 收到现金货款会计分录
  • 税务处理决定书和处罚决定书
  • 运输费属于生产成本还是制造费用
  • 交哪些费用
  • 什么是受托支付和非受托支付
  • 出差发生的招待费计入差旅费吗
  • 补提折旧以前年度损益调整
  • 上月做了未开票收入,这月开了票怎么报税
  • 财政非税收入支付平台
  • 工地会计怎么做账
  • 进项税税额是多少
  • 普通发票记账联盖章了怎么办
  • 工程施工间接费用明细
  • 卖掉公司旧办公用品怎么入账
  • 卖蒸汽的增值税是多少
  • mysql安装与配置的步骤与常用命令
  • sqlserver 17051解决方案
  • sqlserver 教程
  • WINDOWS SERVER 2008开启桌面主题具体步骤
  • win8怎么进系统
  • xp系统插u盘没反应怎么解决
  • mac如何访问win10文件
  • PHP time_nanosleep() 函数使用介绍
  • icg是什么文件
  • 如何配置sendmail
  • linux用ssh登录不进去
  • css怎么画
  • cocos2d android 游戏开发学习——CCAction(二)
  • android游戏开发框架
  • opencv python
  • node.js做服务器
  • android多指触控
  • unityugui
  • jQuery 3.0 的 setter和getter 模式详解
  • 辽宁省税务举报电话
  • 税务逾期未申报是什么意思
  • 乡土中国出版社不同内容一样吗
  • 留抵税额退税政策2023
  • 浙江省如何自助缴纳社保
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设