C:\Users\Administrator\Desktop\新建文件夹\xx\xx\bin\Debug\xx.exe
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\bin\Debug\xx.pdb
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\bin\Debug\xx.xml
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.Form1.resources
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.Resources.resources
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.vbproj.GenerateResource.Cache
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.exe
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.xml
C:\Users\Administrator\Desktop\新建文件夹\xx\xx\obj\Debug\xx.pdb
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.exe
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.xml
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.pdb
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.Form1.resources
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.Resources.resources
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\obj\Debug\xx.vbproj.GenerateResource.Cache
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\bin\Debug\xx.exe
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\bin\Debug\xx.pdb
C:\Users\Administrator\Desktop\拖动窗口\xx\xx\bin\Debug\xx.xml
D:\01.我的程序\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.exe
D:\01.我的程序\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.xml
D:\01.我的程序\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.pdb
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.exe
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.xml
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.pdb
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\bin\Debug\xx.exe
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\bin\Debug\xx.pdb
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\bin\Debug\xx.xml
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.Form1.resources
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.Resources.resources
C:\Users\Administrator\Desktop\20130417 获取屏幕某坐标颜色\xx\obj\Debug\xx.vbproj.GenerateResource.Cache
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
自己写的vb.net代码,压缩包是整个工程,打开后运行可看到效果,输入屏幕坐标,X,Y,点击按钮,窗口背景色就编程了坐标对应像素的颜色。 这个问题好多人问,我试了好多,有的好用,有的不好用。对于VB.NET总体讲有两种方法: 1.取得DC的color值:对于任何位置,可以取得它的DC然后得到COLOR值,但是对于透明UI位置的color,这个颜色不可以赋值给控件,因为它是透明的,而获取的UI位置不是透明的,这个颜色是可以用来赋值的,所以这个不通用。 2.采用获取屏幕截图,然后再取得到BITMAP的某像素颜色,这个是通用的,但是消耗内存和CPU。网上有部分核心代码,但对于小菜们还是隔靴搔痒,我的代码直接可以拿来就用,也便于更改和调试。而且一点不浪费资源,因为我不取获取整个屏幕,而是根据需求,其实对于一个BITMAP,取一个点就行了。根本不费半点CPU和内存,具体看里面代码吧。
资源推荐
资源详情
资源评论
收起资源包目录
获取屏幕某坐标颜色.rar (28个子文件)
获取屏幕某坐标颜色
xx.sln 903B
xx
Form1.vb 2KB
bin
Release
Debug
xx.pdb 50KB
xx.vshost.exe 14KB
xx.exe 24KB
xx.xml 110B
xx.vshost.exe.manifest 490B
obj
Release
Debug
xx.Form1.resources 180B
xx.pdb 50KB
xx.exe 24KB
xx.xml 110B
TempPE
My Project.Resources.Designer.vb.dll 8KB
xx.vbproj.GenerateResource.Cache 847B
xx.vbproj.FileListAbsolute.txt 3KB
xx.Resources.resources 180B
Module1.vb 39B
xx.vbproj 5KB
My Project
Resources.Designer.vb 3KB
Application.myapp 510B
Resources.resx 5KB
Settings.Designer.vb 3KB
Application.Designer.vb 1KB
Settings.settings 279B
AssemblyInfo.vb 1KB
Form1.resx 6KB
xx.vbproj.user 74B
Form1.Designer.vb 5KB
xx.suo 17KB
共 28 条
- 1
wangerxiao0606
- 粉丝: 4
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页