Click here to Skip to main content
15,900,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.Net Unfixing my edits? Pin
Eddy Vluggen10-Jun-13 10:45
professionalEddy Vluggen10-Jun-13 10:45 
GeneralRe: vb.Net Unfixing my edits? Pin
treddie10-Jun-13 11:15
treddie10-Jun-13 11:15 
GeneralRe: vb.Net Unfixing my edits? Pin
Eddy Vluggen10-Jun-13 22:34
professionalEddy Vluggen10-Jun-13 22:34 
GeneralRe: vb.Net Unfixing my edits? Pin
treddie11-Jun-13 9:18
treddie11-Jun-13 9:18 
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 
Hi everyone,
i am trying to write a simple code that reads a bitmap image, i.e ("c:\test.bmp"), then i would like to read every pixel and make a check if the pixel is wether a white or black pixel , to finally counting the number of black pixels in the image:
my code was like this :
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim tst As New Bitmap("c:\tst.bmp")
        PictureBox1.Image = tst
        Dim x, y, bcnt As Integer
        Dim c As Color = tst.GetPixel(x, y)
        bcnt = 0
        For y = 0 To tst.Height - 1
            For x = 0 To tst.Width - 1
                If tst.GetPixel(x, y) = Color.Black Then
                    bcnt = bcnt + 1
                End If

            Next
        Next
        MsgBox(bcnt)

    End Sub

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 
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 

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.