Click to See Complete Forum and Search --> : drawing directly to the form
SteveCRM
Aug 28th, 2000, 08:14 PM
in basic it is something like Plot Points, is there something like this to draw directly to the form?
Thanks :D
Arcom
Aug 29th, 2000, 06:44 PM
BTW: You can change size of the point drawn by changing the DrawWidth property...
Ben.Stappleton
Aug 30th, 2000, 03:59 AM
There's also an API call that's quite a bit faster than PSet. I used it to draw a minimap for a game I was creating a while back.
I'll dig it out for you when I go home tonight if someone in here doesn't know it off the top of their head...
Fox
Aug 30th, 2000, 11:22 AM
It's SetPixelV ;)
You use it as this:
'Declares
Private Declare Function SetPixelV Lib "gdi32" Alias "SetPixelV" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
'Set the pixel
SetPixelV Me.hDC, 10, 10, 255 'Sets a red pixel
Ben.Stappleton
Aug 30th, 2000, 11:23 AM
That's the fellow!
What a clever man this Fox is!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.