位置: 编程技术 - 正文

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)

  • 防伪税控技术维护费怎么申报
  • 企业贷款合同签订后多久放款
  • 其他应付款在借方资产负债表怎么填
  • 申报后发现成本算错了
  • 餐饮个体工商户交税标准
  • 企业公益性捐赠支出税前扣除标准
  • 外地报销怎么报
  • 这个月只有进项没有销项
  • 关于转让费的问题
  • 关于工资薪金的情况说明
  • 开具红字专票的步骤
  • 跨年度错账更正方法
  • 收到的税收返还包括
  • 购买股权属于什么科目
  • 企业购入交易性金融资产支付的交易费用
  • 收入与成本不匹配建议怎么写
  • 税控盘的抵扣怎么填
  • 实收资本不变说明了什么
  • win10专业版分辨率1920x1080不见了
  • bios读取不出u盘
  • 企业收到财政资金
  • 尚未支付的货款属于什么会计要素
  • 社保生育费用报销
  • 企业老板机票怎么报销记账
  • 非正常损失为什么不赔偿
  • 查账征收的个独可以随意分配利润吗
  • service5.exe - service5是什么进程 有什么用
  • 应付税款法账务处理
  • 手续费及佣金扣除标准
  • 2021发票勾选认证
  • 调入的无形资产记入哪里
  • 坏账准备怎么做资产负债表
  • zend framework手册
  • 出口退税款计入营业外收入要交所得税吗
  • php字符串在另一个字符串出现
  • 财务负责人和法人哪个责任大
  • 流动资产的含义及常见项目
  • 房屋租赁公司装修要求
  • 签劳动合同员工突然离职怎么办
  • js异步方式有哪些
  • github+hexo搭建博客
  • 增值税普票可以开给个人吗
  • 公司月报和季报
  • 吃饭的票如何写报销单
  • mysql中游标的作用
  • 工程管理服务属于哪个行业
  • 白酒行业销售赠礼方案
  • 何为居民企业
  • 暂时性差异的产生
  • 小规模纳税人开专票税率是多少?
  • 银行账户收费开户流程
  • 在建工程的人工费进行了全员申报后,清算时怎么处理?
  • 购置税 过户
  • 交去年的企业所得税吗
  • 转账时转错账号怎么办
  • 往来账项询证函怎么填写
  • 给员工的奖励怎么做会计分录
  • 会计审核程序
  • 明细分类账如何填写
  • sql server 错误
  • windows xp升级为windows 7
  • fedoral
  • fedora最新版
  • win7电脑怎么设置
  • 在mac设备上用到什么
  • backupwx.exe
  • jquery常见的选择器
  • 断开网络联结的手机
  • css全局声明
  • web开发手机app
  • nodejs cgi
  • jquery加载图片
  • redis基础教程
  • Android本地文件怎么显示歌词
  • android设计模式的应用场景
  • python连接mq
  • 企业购车需要交消费税吗
  • 青岛市税务局长魏
  • 公司财税知识
  • 税务发票定额
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设