Click here to Skip to main content
15,850,359 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCounting the occurences of a particular word Pin
Saul Johnson18-Jun-08 10:05
Saul Johnson18-Jun-08 10:05 
AnswerRe: Counting the occurences of a particular word Pin
Saul Johnson18-Jun-08 11:18
Saul Johnson18-Jun-08 11:18 
Questiongraduation project Pin
salam ellayan18-Jun-08 9:45
salam ellayan18-Jun-08 9:45 
AnswerRe: graduation project Pin
Ashfield18-Jun-08 10:00
Ashfield18-Jun-08 10:00 
JokeRe: graduation project Pin
Hasan Jaffal18-Jun-08 20:55
Hasan Jaffal18-Jun-08 20:55 
GeneralRe: graduation project Pin
salam ellayan18-Jun-08 23:44
salam ellayan18-Jun-08 23:44 
GeneralRe: graduation project Pin
Hasan Jaffal19-Jun-08 2:53
Hasan Jaffal19-Jun-08 2:53 
AnswerRe: graduation project - Gentle pointer... Pin
Chinners20-Jun-08 0:38
Chinners20-Jun-08 0:38 
Okay, I'll give you a pointer, assuming you know VB.net, but not much about the graphics classes.

Dim bmp As Bitmap = CType(Image.FromFile("c:\bmp.png"), Bitmap)
For x As Integer = 0 To bmp.Width - 1
   For y As Integer = 0 To bmp.Height - 1
      Dim pixelAlpha As Byte = bmp.GetPixel(x, y).A
      Dim pixelRed As Byte = bmp.GetPixel(x, y).R
      Dim pixelGreen As Byte = bmp.GetPixel(x, y).G
      Dim pixelBlue As Byte = bmp.GetPixel(x, y).B
   Next
Next


This should do the graphics bit - slowly, but it'll work.

On the other side, you will need to use bmp.SetPixel...
bmp.SetPixel(x, y, Color.FromArgb(pixelAlpha, pixelRed, pixelGreen, pixelBlue))


The rest, I'm afraid, is up to you.
Generalreply Pin
salam ellayan20-Jun-08 3:10
salam ellayan20-Jun-08 3:10 
GeneralRe: graduation project - Gentle pointer... Pin
salam ellayan22-Jun-08 9:46
salam ellayan22-Jun-08 9:46 
GeneralRe: graduation project - Gentle pointer... Pin
salam ellayan22-Jun-08 9:50
salam ellayan22-Jun-08 9:50 
QuestionHello there!!! need VB.Net assistant. Pin
Rafael Javellana18-Jun-08 7:27
Rafael Javellana18-Jun-08 7:27 
AnswerRe: Hello there!!! need VB.Net assistant. Pin
jzonthemtn18-Jun-08 8:08
jzonthemtn18-Jun-08 8:08 
AnswerRe: Hello there!!! need VB.Net assistant. Pin
Member 415614818-Jun-08 15:16
Member 415614818-Jun-08 15:16 
QuestionClear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 5:47
Mohammad Al Hoss18-Jun-08 5:47 
AnswerRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 10:05
Ashfield18-Jun-08 10:05 
GeneralRe: Clear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 22:49
Mohammad Al Hoss18-Jun-08 22:49 
GeneralRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 23:19
Ashfield18-Jun-08 23:19 
GeneralRe: Clear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 23:22
Mohammad Al Hoss18-Jun-08 23:22 
GeneralRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 23:49
Ashfield18-Jun-08 23:49 
QuestionCount records using a wildcard... Pin
CCG318-Jun-08 5:07
CCG318-Jun-08 5:07 
AnswerRe: Count records using a wildcard... Pin
Noctris18-Jun-08 6:53
Noctris18-Jun-08 6:53 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 7:15
CCG318-Jun-08 7:15 
GeneralRe: Count records using a wildcard... Pin
Ashfield18-Jun-08 10:14
Ashfield18-Jun-08 10:14 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 10:24
CCG318-Jun-08 10:24 

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.