Click here to Skip to main content
15,899,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCounting the occurences of a particular word Pin
Saul Johnson18-Jun-08 9:05
Saul Johnson18-Jun-08 9:05 
AnswerRe: Counting the occurences of a particular word Pin
Saul Johnson18-Jun-08 10:18
Saul Johnson18-Jun-08 10:18 
Questiongraduation project Pin
salam ellayan18-Jun-08 8:45
salam ellayan18-Jun-08 8:45 
AnswerRe: graduation project Pin
Ashfield18-Jun-08 9:00
Ashfield18-Jun-08 9:00 
JokeRe: graduation project Pin
Hasan Jaffal18-Jun-08 19:55
Hasan Jaffal18-Jun-08 19:55 
GeneralRe: graduation project Pin
salam ellayan18-Jun-08 22:44
salam ellayan18-Jun-08 22:44 
GeneralRe: graduation project Pin
Hasan Jaffal19-Jun-08 1:53
Hasan Jaffal19-Jun-08 1:53 
AnswerRe: graduation project - Gentle pointer... Pin
Chinners19-Jun-08 23:38
Chinners19-Jun-08 23: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 2:10
salam ellayan20-Jun-08 2:10 
GeneralRe: graduation project - Gentle pointer... Pin
salam ellayan22-Jun-08 8:46
salam ellayan22-Jun-08 8:46 
GeneralRe: graduation project - Gentle pointer... Pin
salam ellayan22-Jun-08 8:50
salam ellayan22-Jun-08 8:50 
QuestionHello there!!! need VB.Net assistant. Pin
Rafael Javellana18-Jun-08 6:27
Rafael Javellana18-Jun-08 6:27 
AnswerRe: Hello there!!! need VB.Net assistant. Pin
jzonthemtn18-Jun-08 7:08
jzonthemtn18-Jun-08 7:08 
AnswerRe: Hello there!!! need VB.Net assistant. Pin
Member 415614818-Jun-08 14:16
Member 415614818-Jun-08 14:16 
QuestionClear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 4:47
Mohammad Al Hoss18-Jun-08 4:47 
AnswerRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 9:05
Ashfield18-Jun-08 9:05 
GeneralRe: Clear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 21:49
Mohammad Al Hoss18-Jun-08 21:49 
GeneralRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 22:19
Ashfield18-Jun-08 22:19 
GeneralRe: Clear DataGrid sorting Pin
Mohammad Al Hoss18-Jun-08 22:22
Mohammad Al Hoss18-Jun-08 22:22 
GeneralRe: Clear DataGrid sorting Pin
Ashfield18-Jun-08 22:49
Ashfield18-Jun-08 22:49 
QuestionCount records using a wildcard... Pin
CCG318-Jun-08 4:07
CCG318-Jun-08 4:07 
AnswerRe: Count records using a wildcard... Pin
Noctris18-Jun-08 5:53
Noctris18-Jun-08 5:53 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 6:15
CCG318-Jun-08 6:15 
GeneralRe: Count records using a wildcard... Pin
Ashfield18-Jun-08 9:14
Ashfield18-Jun-08 9:14 
GeneralRe: Count records using a wildcard... Pin
CCG318-Jun-08 9:24
CCG318-Jun-08 9: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.