Click here to Skip to main content
15,897,187 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: cd database in vb.net Pin
Oakman10-Nov-09 14:45
Oakman10-Nov-09 14:45 
GeneralRe: cd database in vb.net Pin
Christian Graus10-Nov-09 15:06
protectorChristian Graus10-Nov-09 15:06 
GeneralRe: cd database in vb.net Pin
Oakman10-Nov-09 15:13
Oakman10-Nov-09 15:13 
AnswerRe: cd database in vb.net Pin
Christian Graus10-Nov-09 17:33
protectorChristian Graus10-Nov-09 17:33 
GeneralRe: cd database in vb.net Pin
Shameel11-Nov-09 23:26
professionalShameel11-Nov-09 23:26 
QuestionTrouble Reading Pixel Of Another Application Pin
Member 436831610-Nov-09 8:55
Member 436831610-Nov-09 8:55 
AnswerRe: Trouble Reading Pixel Of Another Application Pin
Christian Graus10-Nov-09 9:00
protectorChristian Graus10-Nov-09 9:00 
GeneralRe: Trouble Reading Pixel Of Another Application [modified] Pin
Member 436831610-Nov-09 9:11
Member 436831610-Nov-09 9:11 
Yeah you'r correct, but I won't use the code I wrote before like that. I'm going to take the "sceenshot" of the application and then from a separat function get the pixels (at least that's the idea). It's alot faster (in my Opinion) if you need to read many pixels. Here's another code I used before to get pixels (which is faster than calling the GetPixel Api directly). But it's limited to only the visible windows. I want to get the pixels even if the window is invisible (behind another window and not necessary minimized).

<br />
Private b as bitmap<br />
<br />
Public Sub Screenshot()<br />
<br />
b = New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height,Imaging.PixelFormat.Format32bppArgb)<br />
<br />
Dim gfx As Graphics = Graphics.FromImage(b)<br />
<br />
gfx.CopyFromScreen(My.Computer.Screen.Bounds.X, My.Computer.Screen.Bounds.Y, 0, 0,Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy)<br />
<br />
End sub<br />
<br />
public function GetPixel(byval x as integer, byval y as integer)<br />
<br />
     return b.GetPixel(x, y).R<br />
<br />
End Sub<br />


modified on Tuesday, November 10, 2009 3:41 PM

GeneralRe: Trouble Reading Pixel Of Another Application Pin
Christian Graus10-Nov-09 10:18
protectorChristian Graus10-Nov-09 10:18 
GeneralRe: Trouble Reading Pixel Of Another Application [modified] Pin
Member 436831610-Nov-09 10:50
Member 436831610-Nov-09 10:50 
GeneralRe: Trouble Reading Pixel Of Another Application Pin
Christian Graus10-Nov-09 11:59
protectorChristian Graus10-Nov-09 11:59 
GeneralRe: Trouble Reading Pixel Of Another Application Pin
Member 436831610-Nov-09 12:34
Member 436831610-Nov-09 12:34 
GeneralRe: Trouble Reading Pixel Of Another Application Pin
Christian Graus10-Nov-09 13:05
protectorChristian Graus10-Nov-09 13:05 
GeneralRe: Trouble Reading Pixel Of Another Application Pin
EliottA11-Nov-09 2:35
EliottA11-Nov-09 2:35 
QuestionSend Keys from keyboard Pin
shaina223110-Nov-09 6:55
shaina223110-Nov-09 6:55 
AnswerCross post Pin
dan!sh 10-Nov-09 6:59
professional dan!sh 10-Nov-09 6:59 
AnswerRe: Send Keys from keyboard Pin
The Man from U.N.C.L.E.10-Nov-09 7:02
The Man from U.N.C.L.E.10-Nov-09 7:02 
QuestionDisposing all objects Pin
Gagan.2010-Nov-09 2:42
Gagan.2010-Nov-09 2:42 
AnswerRe: Disposing all objects Pin
Dave Kreskowiak10-Nov-09 3:59
mveDave Kreskowiak10-Nov-09 3:59 
AnswerRe: Disposing all objects Pin
David Mujica10-Nov-09 4:01
David Mujica10-Nov-09 4:01 
GeneralRe: Disposing all objects Pin
Luc Pattyn10-Nov-09 4:06
sitebuilderLuc Pattyn10-Nov-09 4:06 
AnswerRe: Disposing all objects Pin
Shameel10-Nov-09 5:06
professionalShameel10-Nov-09 5:06 
GeneralRe: Disposing all objects Pin
Paulo Zemek10-Nov-09 8:04
Paulo Zemek10-Nov-09 8:04 
GeneralRe: Disposing all objects Pin
Shameel11-Nov-09 7:53
professionalShameel11-Nov-09 7:53 
QuestionUnable to proper shutdown Pin
Gagan.2010-Nov-09 2:29
Gagan.2010-Nov-09 2:29 

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.