位置: 编程技术 - 正文

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)

  • 消费税和所得税的关系
  • 税务网上清卡流程
  • 金税开票系统怎么导出发票明细
  • 行政事业单位会计制度
  • 长期投资换入固定资产如何处理
  • 进项税超期怎么办
  • 建筑公司对外如何开票
  • 公司业务往来
  • 增值税发票做假什么后果
  • 购买毛巾的费用是多少
  • 个人到税务局怎么开增值税普通发票
  • 小规模免了增值税怎么办
  • 税控服务费抵扣增值税
  • 土地+n
  • 发票普票冲红
  • 小规模季度超过30万怎么填报增值税
  • 企业所得税退税怎么做账务处理
  • 冲账的记账凭证冲销错误记录
  • 旅行社开具的发票能否作废
  • 高新技术企业的研发费用比例
  • 从农民手中收购农产品增值税处理
  • win10系统如何注册dll文件
  • 事业单位财务预算管理制度
  • 交契税需要什么东西
  • 事业单位工会会员费如何计算
  • mac怎么保存
  • 会计科目明细分类科目表
  • kazaalite.exe是什么进程 kazaalite进程有什么用
  • 企业安置残疾人如何残联备案
  • 发票上下联开具的金额不符怎么处罚
  • 在西伯利亚森林中是真实故事吗
  • 汽车销售行业的税负率是多少
  • 取得土地使用权的方式
  • 房地产企业销售佣金税前扣除
  • rest for api
  • 实用的开源软件
  • laravel中间件是什么意思
  • 土地测绘费计入管理费用明细科目吗
  • get_module_base
  • 补发工资账务处理
  • 增值税普通发票可以抵扣吗
  • 企业计提增值税的会计科目
  • 公司买汽车计入什么费用
  • mongodb bi
  • 开发支出在资产负债表填哪一栏
  • 现代服务包括哪些内容是什么
  • 企业弥补以前年度亏损要怎么填表
  • 结转利润分配的二级明细账户
  • 银行存款利息收入要交税吗
  • 产品销售收入的确认条件
  • 销售单位收入和税收
  • 报销单粘贴单
  • 房产公司销售成本怎么算
  • 手工现金日记账范本
  • 员工离职未领工资怎么处置
  • 敬老院的会计科目
  • linux重置开机密码
  • window windows10
  • Windows 10 PC/Mobile Build 14965预览版推送:改进PC端
  • 什么是活动目录和域
  • 登录ubuntu桌面
  • u启动开机启动快捷键
  • macbookzen
  • linux系统中怎么创建目录
  • win10周年版
  • qq空间好友评论别人看不到
  • win7打不开网页,可以重装系统吗
  • 向Windows8靠拢 全新的个性化库页面
  • unitysharder
  • nodejs爬取数据
  • nodejs查找文件
  • Div CSS absolute与relative的区别小结
  • 举例讲解水生花卉栽培管理
  • javascript基础教程pdf下载
  • javascript面向对象编程
  • 一般纳税人开具的增值税普通发票和专用发票的区别
  • 出口汇率以什么为准
  • 保险公司优惠的款项什么时候退款
  • 新疆都有哪些地貌
  • 沈阳沈河区税务局待遇
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设