Advertisement

vb.net and setPixel

Started by November 29, 2002 07:02 PM
0 comments, last by jackShadow 21 years, 11 months ago
I am trying to use vb.net to do some game programming. Problem is I can''t seem to figure out how the new graphics commands work... I can''t use setPoint anymore. Can anyone point me to some info on how to approach this? I''ve looked everywhere! Namely I''m trying to modify a picturebox and wanted to do something like: setPixel Picture1.hdc, leftPix, topPix, theColor but .net won''t allow you to pass handles anymore??? (yes I did declare the setPixel function) I have tried bringing in the system.drawing namespace, but setPixel isn''t available, and something like picture1.setPixel blah, blah, blah, blah doesn''t work either. Help!!
The System.Drawing.Bitmap class has a SetPixel method.


For those who believe in God, most of the big questions are answered. But for those of us who can''t readily accept the God formula, the big answers don''t remain stone- written. We adjust to new conditions and discoveries. We are pliable. Love need not be a command or faith a dictum. I am my own God. We are here to unlearn the teachings of the church, state, and our educational system. We are here to drink beer. We are here to kill war. We are here to laugh at the odds and live our lives so well that Death will tremble to take us -- Charles Bukowski
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

This topic is closed to new replies.

Advertisement