在bmp文件中找到一个红点..... [英] to find a red dot in bmp file.....
本文介绍了在bmp文件中找到一个红点.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好....
有一个bmp文件,黑色背景,中间有一个红色印迹(点)(我不能说) ...我怎么能找到红点的坐标....
任何代码都会受到赞赏....
谢谢
Ranjit
hi all....
there is a bmp file which has a black background and has a red blot(dot) in the middle(i cant exactly say).....how can i find the coordinates of the red dot....
any code ll be appreciated....
Thanks
Ranjit
推荐答案
嗨Ranjit,
你有一个正确的位图。
我可以知道位图的类型吗?
以下是位图类型。
1.单色。
2. 16颜色。
3. 256颜色和
4. 24位。
注意:对于每种类型,我们都想以不同的方式获取像素值。
问候,
M.Sivadhas。
Hi Ranjit,
You have a bitmap right.
Can I know the type of the bitmap?
The following are the bitmap types.
1. Monochrome.
2. 16 Color.
3. 256 Color and
4. 24 bit.
Note: For each type we want to fetch the pixel values differently.
Regards,
M.Sivadhas.
嗨......
位图是24位......(640x480-bmp)
谢谢
Ranjit
hi...
the bitmap is of 24 bits......(640x480-bmp)
Thanks
Ranjit
嗨Ranjit,
对于24位位图,
像素值范围是0到167772 16.
你能从位图中获取像素值吗?
如果是,请给出一些示例像素值。
问候,
M.Sivadhas。
Hi Ranjit,
For 24 bit bitmap,
The pixel value range is 0 to 16777216.
Can you able to get the pixel values from the bitmap?
If yes, give some sample pixel values you got.
Regards,
M.Sivadhas.
这篇关于在bmp文件中找到一个红点.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文