位置: 编程技术 - 正文

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)

  • 免抵退税办法不得抵扣的进项税额的会计处理
  • 个税年度汇算清缴开始时间
  • 发票复核人一定要是财务吗
  • 用银行支付本月生产车间保险费820元
  • 先到发票后到商品怎么入账
  • 没有以前年度损益调整这个科目,怎么增加?
  • 向职工支付职工福利费
  • 支付结算有哪些工具
  • 银行承兑汇票怎么填写
  • 销售方退款回来要怎么处理?
  • 营业外支出计入
  • 股票持有多久可以打新股
  • 企业自行建造的固定资产
  • 提现属于支出吗
  • 办公室装修费用计入什么会计科目
  • 存货的入账价值怎么计算
  • 审计调整以前年度投资收益怎么处理
  • 理财公司收到客户投资款怎么处理
  • 车辆 以旧换新
  • 股票的交易费用是怎么算的
  • 根据完工进度确认成本
  • 事业单位接受捐赠固定资产入账
  • 纳税人解除劳动合同补偿
  • win10蓝牙驱动怎么安装程序
  • pytorch f
  • 短视频小程序源码
  • 科罗拉多河上的月光简谱
  • 特征提取原理
  • 最强大的人工智能武器
  • php array_product
  • 微信随机红包表情包怎么弄
  • 其他应收款等于
  • 税负率一般控制什么
  • 进项税额转出会计分录
  • 主营业务成本和生产成本的区别
  • 购入的机器设备
  • 销售返利的账务处理购买方
  • wndgui降级
  • 长期借款利息是流动负债吗
  • 企业基本养老金退休后能领多少
  • mysql @参数
  • mongo删除数据库命令
  • 应收票据及应收账款周转率计算公式
  • 有外币业务需不需要交税
  • 用友会计科目增加二级
  • 公司支付款项制度
  • 允许在企业所得税税前扣除的
  • 办理注销税务登记的流程和资料
  • 先预付货款,货到了怎么做账
  • 加工费的预付款是什么
  • 公司代缴社保生育津贴大概领多少
  • 增值税进项税额抵扣期限最新
  • 堤防维护费税率
  • 配电箱安装步骤及要求
  • 如何理解预付年金终值期数和系数和记忆方法
  • 建安企业无收入证明模板
  • 对公收到几毛测试费怎么做账
  • 职工教育经费的差旅费可以抵扣吗
  • sql server中的文件位置可以很灵活
  • solaris syslog
  • Ubuntu安装ssh
  • securecrt keymap
  • 如何远程登录路由器
  • win7显示网上邻居图标
  • win7系统连接打印机没有反应
  • win10在哪里找
  • linux如何修改网关地址
  • unity ugui ngui
  • js domcontentloaded
  • nodeJS文件操作自动创建目录
  • pythoni脚本
  • 使用image控件显示图片
  • activity的跳转
  • 国家税务总局宁夏回族自治区税务局
  • 彩票税率税率
  • 怎样查询一个企业是不是一般纳税人
  • 航信开的电子发票怎么导出来
  • 保税工厂和非保税工厂的区别
  • 进项税小于销项税
  • 定期定额个体工商户需要做账吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设