位置: 编程技术 - 正文

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)

  • 应交税费是什么科目借贷方向
  • 纳税人进口货物应当自海关填发税款
  • 2021年餐饮业的税率是多少?
  • 鲜花虫草开发票属于什么类别?
  • 开具技术服务费发票需要注意什么
  • 印花税是不是必须要交
  • 账本一般保存几年就可以销毁2004年的规定
  • 企业所得税汇算清缴时间
  • 城建税和教育附加税
  • 固定资产的折旧方法一经选定,不得随意变更
  • 商业银行税前收益率
  • 商业房产出租和租赁区别
  • 小规模发票跨月冲红怎么做账
  • 纯外贸企业进项要转出吗为啥
  • 季度交的企业所得税怎么做账
  • 自产产品销售增值税
  • 住房公积金如何在手机上提取
  • 开租金发票可以提前开的吗?
  • 口腔医院的发票有什么用
  • 工资不在本公司发票报销可以吗?
  • 微信红包税前扣除
  • 普通增值税 税点
  • 发票勾选认证截图图片
  • 开具增值税发票的注意事项有哪些?
  • 工程物资应该计入哪里
  • 购买办公桌椅属于什么费用
  • 个体户网上报税流程视频
  • 固定资产折现率怎么算
  • 汇算清缴退税计入什么科目
  • 收到财政奖励扶持资金账务处理?
  • 代收代付快递货款需要发票吗,中间差额服务费怎么开票?
  • mac安装软件不用密码
  • 投标保证金退回是什么意思
  • win10蓝牙驱动怎么安装程序
  • fs是什么文件
  • $(window).resize
  • 材料委托加工
  • PHP:imagegrabwindow()的用法_GD库图像处理函数
  • 完美解决战网已休眠正在唤醒它
  • thinkphp5.0.23
  • 前端按钮跳转界面
  • WP Smart Preloader 为你的WordPress添加预加载动画
  • sqlserver2008数据库文件路径
  • sqlserver2005数据库导出数据成.sql
  • 怎样识别真假增值税发票
  • 医院执行政府会计制度操作指南 .pdf
  • 自产用于捐赠的会计处理
  • 社保局会给失业人员打电话吗
  • 工商年报认缴时间过期了怎么办
  • 个税起征点调整至10000
  • 库存商品如何结转生产成本
  • 外经证是怎么样的
  • 发票免税怎么做账
  • 固定资产折旧成本票据类型
  • 购买汽车保险费是否做入固定资产
  • ゆうちょ银行转账步骤
  • 外汇账户开立成功后,开户行应于
  • 原始凭证的会计分录
  • SQL server 字符串函数
  • mysql主从复制原理以及架构
  • win8磁盘占用率高怎么处理
  • win8自带软件
  • 怎么把u盘两个盘合并到一起
  • tvt_reg_monitor_svc.exe进程是什么
  • win7系统开机蓝屏0x0000007b
  • centos6.5关闭休眠
  • win7系统出现蓝屏怎么进去桌面
  • ubuntu系统怎么开机
  • windows7无法激活怎么解决方法
  • win8电源设置
  • win7ie8和ie11
  • win10系统日历怎么放在桌面
  • Tips(1)glewExperimental
  • python多进程并发http请求
  • 焦点轮播图代码
  • 把下一行的数字去掉
  • 在海口二手房需交什么税
  • 税务局电话咨询电话
  • 外购已税小汽车用于连续生产小汽车为啥可以抵扣
  • 包装种类代码表集装箱
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设