位置: 编程技术 - 正文

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)

  • 进项税认证后转出
  • 税收筹划的内容主要包括
  • 资产负债表其他应付款包括哪些
  • 交通费怎么抵扣进项税
  • 组装机配件
  • 土地使用税怎么终止
  • 营改增一般纳税人标准
  • 售楼部垃圾桶
  • 评估增值的差额是什么
  • 划拨土地能转为商业用地吗
  • 特许权使用费预扣预缴计算方法
  • 小规模纳税人附加税税率各是多少
  • 案例分析一般纳税人的税负率怎么计算?
  • 增值税哪些可以全额抵扣
  • 应交印花税会计分录
  • 跨月红字发票可以作废吗
  • 没有发票的固定资产可以税前扣除吗
  • 专用发票退回
  • 房租发票进项税额抵扣
  • 教学用品采购
  • 可供出售金融资产属于流动资产吗
  • 贸易公司收到货款会计分录
  • 如何使用ping命令诊断网络故障
  • Win11文件资源管理器将更新
  • 劳务派遣公司差额征税怎么申报
  • 资产负债表中的预付款项目应根据什么填列
  • 我们无法创建新的分区,也找不到现有的分区 贴吧
  • 专设销售机构的各项经费应列支什么科目
  • 材料没有入库
  • php html5
  • 经营租入的设备计入什么科目
  • 2022年苹果iphone14一个几个颜色
  • 长期借款利息费用的资本化账务处理
  • 居民企业境外所得税抵免限额
  • 向日葵茎上有刺吗
  • php preg_quote
  • 编程中char什么意思
  • 商贸公司如何结转销售成本
  • php设置标题
  • 房产税按照租金
  • 什么叫做归属
  • 企业发生的咨询费应计入哪个科目
  • python PyQt5如何实现窗口功能
  • 进项税额已经抵扣
  • 政府的资本性投入需要交印花税吗
  • 增值税会计账务处理例题
  • 零售行业的销售额由什么决定
  • 纳税人提供不动产经营租赁服务增值税征收管理暂行办法
  • 金融企业有
  • 外出经营一定要开
  • 购进商品售价金额核算
  • 哪些合同需要缴税
  • 以前年度少计提的工资怎么处理
  • 软件公司购进软件会计科目
  • 销项负数发票入账分录
  • 销售费用怎么考核
  • 收回已转销的应收账款而恢复的坏账准备
  • 普票抵扣
  • 其他应收款明细表怎么填
  • 企业失信是什么意思
  • mysql深入解析
  • 教你怎么使用加油机
  • 关于存储过程的描述
  • windows 2000.
  • linux的ntp服务
  • win10预览版怎么安装
  • yum providers命令
  • Win7系统怎么打开设置
  • linux历史操作
  • cocos2dx解密
  • 微软企业官网
  • JavaScript事件代理和委托详解
  • 批处理生成excel
  • 批处理文件(.bat)怎么写?
  • unity3dwasd移动
  • 关于Air端与android端的通信实现
  • js行号显示的文字不一样
  • js分享软件集合
  • 安徽省国家税务局网上办税平台
  • 集体产权房产证怎么办
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设