Results 1 to 2 of 2

Thread: just want to paint pixels (fast)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    102
    hi.
    i come from the lovely world of assembler and screen draw in memory (you know, 0A000h, wait for retrace...)

    anyhow, i would like to know how do i make this stuff in vb.
    a simple (if there's any) code for the following "tasks" would be most appreciated:
    1. change screen res
    2. clear the screen
    3. put pixel (x, y, color)
    4. section 3, fast.

    btw: using NT.

    thanx, itay.

  2. #2
    Guest
    The fastest way for Point 3 is

    Public Declare Function SetPixel Lib "gdi32.dll" _
    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, _
    ByVal crColor As Long) As Long

    but you you must scale the picturebox or else in vbPixel

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