位置: 编程技术 - 正文

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)

  • 公司名下的车怎么报废
  • 文化建设税减免到什么时候
  • 报关单保费000/0.1/1
  • 签合同前的费用由谁承担
  • 税控盘锁死提示什么
  • 党费奖励需要交个税吗
  • 辅导期增值税一般纳税人申报材料
  • 纳税总额是否包含增值税进项
  • 案件补贴
  • 债券投资损失准备累计已计提
  • 建筑工地的零星补单是指什么意思
  • 货款为现金如何做记账账款凭证?
  • 开办费转入管理费用分录
  • 事业单位属于一级单位吗
  • 以后年度继续扣除广告宣传费,要怎么写分录?
  • 固定资产转固流程图
  • 融资租赁购入固定资产开票吗
  • 贷款利息支出属于
  • 一次性收取的租金怎么纳税
  • 合同签订后税率调整
  • 小微企业行业划分标准 工信部
  • 六月雪的养殖方法和注意事项
  • 手机网速测试怎么看多少兆网
  • 代销商品手续费计入什么科目
  • 双网卡冲突会发生什么现象
  • php json转对象
  • 因质量问题被扣的货款销售方怎么做账
  • 企业研发费用可以只加计一半吗
  • 填制的凭证内容有哪些
  • 劳务派遣发票会扣税吗
  • 房屋租赁经营要交哪些税
  • vue怎么让按键启用和禁用
  • zendframework3中文手册
  • 勃朗峰峡谷
  • php表单提交输入判断
  • yolov5输出参数
  • vue中的use
  • 用友财务软件使用视频教程
  • 捐赠支出如何做凭证
  • pytorch自定义网络层
  • laravel分页
  • 原材料用于在建工程增值税如何处理
  • 分公司可以开基本账户吗
  • 应收账款坏账准备计算表
  • 小规模纳税人什么意思
  • 社保可以不计提直接缴纳吗
  • 帝国cms插件编写教程
  • mongodb启动命令 linux
  • 应税污染物的计算公式
  • 出口退税申报系统汇率修改
  • 小企业核算方式选独立核算
  • 软件测试收费标准2019
  • 其他综合收益转出
  • 远程连接局域网电脑
  • Windows Server 2003关闭启动后的Ctrl+Alt+Del选项和关机时的时间跟踪程序方法
  • badcommandorfilename是什么意思
  • win7经常自动重启是什么原因
  • ubuntu20桌面
  • linux中cat命令的用法含义
  • centos硬盘扩容
  • rundll32找不到文件
  • win7如何设置屏幕保护时间
  • 联想笔记本win7装win10
  • linux 端口号
  • ext.grid.gridpanel
  • android开发环境的搭建实验总结
  • 原生javascript开发
  • 创建nodejs项目的步骤
  • 特牛的群名
  • android study
  • jquery dom对象
  • android 左右滑动 库
  • unity动画animator
  • unity中ngui
  • js轮播图视频教程
  • Android ImageLoader 本地缓存
  • 浙江税务客服咨询电话
  • 天津怎么网上交电费
  • 12366属于哪个部门
  • 应缴纳资源税税额怎么计算
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设