All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Ajax简单客户登陆验证_[Asp.Net教程]
优秀的社区软件Discuz!之NT版本教程_.net资料_编程技术
利用PHP的OOP特性实现数据保护_[PHP教程]
解决网爬工具爬取页面信息出现乱码的问题_[Asp.Net教程]
第六篇:ListView控件与DataPager控件详解(2)_[Asp.Net教程]
ASP.NET,2.0+Atlas编写鼠标拖放程序_.net资料_编程技术
利用XMLHTTP无刷新添加数据之Post篇_[XML教程]
asp.net代码实现MSSQL数据库创建及操作_[Asp.Net教程]
php中关于处理字符串时效率的讨论_php资料_编程技术
ASP.NET2.0数据库入门之常见错误_[Asp.Net教程]
Reading number is top 10 pictures
Earthquake hedge common sense
含苞欲放的素颜美少女3
西游日记1
In the world the most mysterious 21 place landscape4
29 the belle stars after bath figure1
清扫五脏垃圾,我有绝招
29 the belle stars after bath figure5
Female model behind the bitterness, often being overcharged2
Ashlynn Brooke show proud chest measurement3
到底是谁撞谁呀?
Download software ranking
Red cliff
尖东毒玫瑰B
美女写真3
Tram sex maniac 2 (H) rar bag3
I for your crazy
Unix video tutorial2
Boxer's Top ten classic battle5
塘西风月痕
SP4 for SQL2000
Proficient in JavaScript
aaa published in(发表于) 2013/12/24 5:50:22 Edit(编辑)
PHP开发技巧:PHP关于图像颜色的操作_php资料_编程技术

PHP开发技巧:PHP关于图像颜色的操作_php资料_编程技术

PHP开发技巧:PHP关于图像颜色的操作_php资料_编程技术-你的首页-uuhomepage.com

1.imagecolorallocate
语法:int imagecolorallocate(int im,int red,int green,int blue)
该函数的功能是在im为表示的图像中设定RGB模式的颜色,返回值为一个标识,这个标识唯一确定了一个在im图像的颜色,只有使用改函数指定到特定图像中的颜色才能被该图像使用,一个图像中所有实用的颜色都必须用这样的方法来指定。而且一个图像不能使用另外一个图像中的颜色

2.imagecolortransparent
语法:int imagecolortransparent(int im[,int col])
该函数给图像指定透明的背景色,im为图像的标识,col为使用ImageColorAllocate函数给图像指定的颜色,返回值为新指定的透明色的标识

3.imagecolorat
语法: int imagecolorat(int im,int x,int y)
该函数可以取得图像中的点源素的颜色值。参数im为图形的标识,x和Y分别为图像中的点所在的位置的横坐标和纵坐标

4.imagecolorclosest
语法:int imagecolorclosest(int im,int red,int green,int blue)
该函数可以计算给定的图像中某点的颜色和哪个颜色的索引值最接近,参数im为图像的标识。

5.imagecoloeset
语法:bool imagecolorset(int im,int index,int red,int green,int blue)
该函数可以设定图像的颜色索引表中指定索引的颜色 。 index为指定的索引号

6.imagecolorsforindex
语法:array imagecolorsforindex(int im,int index)
该函数从图像的元素索引表中根据索引号取得指定的颜色

7.imagecolorstotal
语法:int imagecolorstotal(int im)
该函数能探测图像总共使用了多少种颜色





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.