位置: 编程技术 - 正文

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锁屏界面不能输入密码
  • vue移动端预览pdf
  • 查账补缴的税的账怎么做
  • 给客户赠送的礼物叫什么
  • uniapp+uview
  • 魅族路由器怎么样
  • 世界上寿命最长的灯泡是什么品牌
  • 拱门国家公园景点
  • 计入当期损益的利得分录
  • 资产提前报废需要什么资料
  • 美国大提顿国家公园
  • 小规模未开票收入如何申报增值税
  • 软件折旧费
  • 建筑企业总包单位有哪些
  • 企业销售旧车增值税处理
  • 应收应付对冲的会计分录
  • 财务报表的作用包括?
  • 企业法人个人贷款哪里好贷
  • 实收资本印花税税率
  • 资产负债表期末余额是累计数吗
  • win10下安装win7启动不了
  • 收款金额比开票金额多怎么处理
  • 费用报销单如何粘贴票据
  • 结转费用后利润怎么算
  • 房地产行业增值税预缴
  • 购买土地的流程
  • 预提工资如何算增值税
  • 税率调整后税差怎么算
  • 银行公司账户限额
  • 组织机构代码证和统一社会信用代码的关系
  • 出口转内销账务处理以前年度
  • win8如何添加启动项
  • ubuntu左侧菜单不见了
  • linux批量管理平台
  • WIN10系统中读卡器驱动的正确安装程序
  • win7小技巧
  • linux版vnc
  • opengl网格
  • python中判断
  • python true的用法
  • unity的脚本
  • jquery操作html代码
  • 利用python绘图
  • unity quaternion.angle
  • JavaScript中Number.NEGATIVE_INFINITY值的使用详解
  • android缓存机制
  • 保险代理人非公司员工
  • 国税商品分类目录
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设