位置: 编程技术 - 正文

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)

  • 自然人电子税务局
  • 销售货物的运费计入成本吗
  • 个体工商户要报工商年报吗?
  • 什么叫做负税
  • 企业年报股东及出资信息要怎么填写
  • 本期缴纳前期应纳税额
  • 递延所得税资产计算公式
  • 固定资产大修理支出标准
  • 弃置费用调整
  • 房产租金收入房产税
  • 营业收入利润率多少合适
  • 无偿划转财政厅
  • 哪些可用商业汇票结算?
  • 购买设备送给客户帐务处理是怎样的?
  • 子公司算总公司员工吗
  • 增值税专用发票和普通发票的区别
  • 坏账准备税务处理办法
  • 第二个季度
  • 案例分析:实物抵债的涉税问题
  • 开了发票一定要确认收入吗
  • 培训费发票如何入账
  • 增值税的计征方法有哪些
  • 银行借款用于在建工程
  • 预付款退回扣除什么意思
  • 员工入职体检表格模板
  • ajax+json
  • 腾讯电脑管家中的软件搬家
  • 处理车辆违章送哪个部门
  • 芦荟的功效与作用治什么病
  • PHP:pg_connection_status()的用法_PostgreSQL函数
  • 微软windows11iso
  • 酒店里用了收费的东西怎么算
  • 本单位生产的水泥属于
  • 工会经费税前扣除标准2022
  • yii2 adminlte
  • 以物易物怎么写分录
  • 小企业会计准则调整以前年度费用分录
  • 服务,不动产和无形资产怎么填小规模
  • php获取数据库中的数据,输出到div中
  • thinkphp教程
  • 小规模纳税人低于30万怎么填报申报表
  • 增值税发票可以作废重新开吗
  • php中实现文件上传需要用到哪几个函数
  • php 微信公众号自定义菜单
  • 公司认缴的钱可以动吗
  • mysql5.7.27安装与配置
  • distinct用法及搭配
  • 水电费用属于会计的什么费用
  • 现流表与资产负债表的关系
  • 企业净利率多少算高
  • 收到厂家返利如何计算成本
  • 工资0申报怎么报
  • 电子商业承兑汇票的承兑有以下几种方式
  • 增值税发票丢失罚款多少
  • 没实收资本还怎么做账
  • 百旺开发票清单
  • 购买的商品属于什么会计科目
  • 营业外收入适用的会计准则
  • 会计账户分类是什么意思
  • 处置固定资产损失的账务处理
  • fedora怎么安装软件
  • 苹果Mac系统怎么装
  • 如何关闭windows密钥
  • win10 无线热点
  • cocos2d schedule
  • cocos2d怎么用
  • python中列表删除
  • glsl编译
  • 批处理中数字可以用什么代替
  • unity加密代码
  • 二级菜单css代码
  • 置顶怎么折叠起来
  • Android Studio --自动删除没有用的资源,给APK减减肥
  • android布局文件详解
  • javascript总结笔记
  • opencvandroid开发实战
  • android下载图片并保存到本地
  • 电子税务局登录方式
  • 怎么在年报查询个人信息
  • 车辆保险代收车船税会计分录
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设