找回密码
 加入
搜索
查看: 2677|回复: 2

[图形处理] [已解决]为什么 读取图片文件指定点的颜色 为0

[复制链接]
发表于 2013-8-18 22:32:24 | 显示全部楼层 |阅读模式
本帖最后由 guoguo188 于 2013-8-19 14:02 编辑

不知道下面的代码哪里出错了,请大大门指出 谢谢
#Include <GDIPlusEx.au3>
$hBmp = _GDIPlus_BitmapCreateFromFile(@ScriptDir & "\test.bmp") ;

$iColor = _GDIPlus_BitmapGetPixel($hBmp, 227,397)
MsgBox(0,'颜色为',$iColor)
正确答案看2楼
发表于 2013-8-19 10:48:16 | 显示全部楼层
_GDIPlus_Startup()
$hBmp = _GDIPlus_BitmapCreateFromFile(@ScriptDir & "\test.bmp") ;

$iColor = _GDIPlus_BitmapGetPixel($hBmp, 227,397)
MsgBox(0,'颜色为',$iColor)
_GDIPlus_Shutdown()
 楼主| 发表于 2013-8-19 14:02:57 | 显示全部楼层
回复 2# seniors


可以了  非常感谢
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 12:59 , Processed in 0.080720 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表