Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

yo, sry but there is no getpixel :(

 

this is what i have:

 

Private Sub mainform_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp

 

Dim bmpc As Bitmap()

bmpc.getpixel() <-- -doesnt exist.. not in the list

 

End Sub

 

sry, but can u pleasee gimme specic instructions

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted

You could try something like:

Dim bmpc As New Bitmap("C:\bmpc.bmp")
Dim pixelColor As Color = bmpc.GetPixel(e.X, e.Y)

       If pixelColor.G = 255 Then     'or whatever your value is  
           'etc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...