Results 1 to 5 of 5

Thread: drawing directly to the form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    in basic it is something like Plot Points, is there something like this to draw directly to the form?

    Thanks

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    BTW: You can change size of the point drawn by changing the DrawWidth property...

  3. #3
    New Member
    Join Date
    Aug 2000
    Posts
    11
    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...
    Give me five lines written by the most honourable of men, and I shall find in them an excuse to hang him. - Cardinal Richelieu

    Ben Stappleton
    VB6E SP4

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    It's SetPixelV

    You use it as this:

    Code:
    '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

  5. #5
    New Member
    Join Date
    Aug 2000
    Posts
    11
    That's the fellow!

    What a clever man this Fox is!
    Give me five lines written by the most honourable of men, and I shall find in them an excuse to hang him. - Cardinal Richelieu

    Ben Stappleton
    VB6E SP4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width