Click here to Skip to main content
15,902,189 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.Net Unfixing my edits? Pin
TnTinMn10-Jun-13 15:00
TnTinMn10-Jun-13 15:00 
GeneralRe: vb.Net Unfixing my edits? Pin
treddie10-Jun-13 16:48
treddie10-Jun-13 16:48 
QuestionVB.Net and TAPI 3.1 Pin
Noname11210-Jun-13 3:35
Noname11210-Jun-13 3:35 
Questionchecking black pixels then counting them Pin
sharief hussien VB9-Jun-13 23:19
sharief hussien VB9-Jun-13 23:19 
AnswerRe: checking black pixels then counting them Pin
Dave Kreskowiak10-Jun-13 1:28
mveDave Kreskowiak10-Jun-13 1:28 
GeneralRe: checking black pixels then counting them Pin
sharief hussien VB10-Jun-13 2:26
sharief hussien VB10-Jun-13 2:26 
GeneralRe: checking black pixels then counting them Pin
Dave Kreskowiak10-Jun-13 3:58
mveDave Kreskowiak10-Jun-13 3:58 
GeneralRe: checking black pixels then counting them Pin
sharief hussien VB10-Jun-13 4:18
sharief hussien VB10-Jun-13 4:18 
sorry dave for my mysterious question, Lol
i would like to create a simple windows application that reads a bitmap image then counts the black pixels within the image, and finally print it out in a message.
i wrote the following code :
*****************************************
dim img as new bitmap ("c:\test.bmp")
dim x,y,count as integer
count = 0
for y = 0 to img.height-1
for x = 0 to img.width-1
if img.getpixel(x,y)= color.black then
count += 1
end if
next
next
mesgbox(count)
****************************************
the problem is that , the count is always 0.
why , ? i do not know?
is there any wrong with the code?
GeneralRe: checking black pixels then counting them Pin
Dave Kreskowiak10-Jun-13 7:39
mveDave Kreskowiak10-Jun-13 7:39 
QuestionFilter the data from excel using VB Pin
R@M-ITcian8-Jun-13 18:32
R@M-ITcian8-Jun-13 18:32 
AnswerRe: Filter the data from excel using VB Pin
Richard MacCutchan8-Jun-13 21:56
mveRichard MacCutchan8-Jun-13 21:56 
QuestionIntPtr and API functions Pin
treddie8-Jun-13 17:03
treddie8-Jun-13 17:03 
AnswerRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 21:55
mveRichard MacCutchan8-Jun-13 21:55 
GeneralRe: IntPtr and API functions Pin
treddie8-Jun-13 23:39
treddie8-Jun-13 23:39 
GeneralRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 23:41
mveRichard MacCutchan8-Jun-13 23:41 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 8:11
treddie9-Jun-13 8:11 
GeneralRe: IntPtr and API functions Pin
Richard MacCutchan9-Jun-13 9:25
mveRichard MacCutchan9-Jun-13 9:25 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 11:44
treddie9-Jun-13 11:44 
Questionstackhash _2f16 Pin
champagne_charly8-Jun-13 9:11
champagne_charly8-Jun-13 9:11 
AnswerRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 5:13
professionalEddy Vluggen9-Jun-13 5:13 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 5:54
champagne_charly9-Jun-13 5:54 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:04
professionalEddy Vluggen9-Jun-13 6:04 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 6:06
champagne_charly9-Jun-13 6:06 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:19
professionalEddy Vluggen9-Jun-13 6:19 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 8:10
champagne_charly9-Jun-13 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.