|
-
Oct 23rd, 2002, 06:52 PM
#1
Thread Starter
Hyperactive Member
setpixel
whats the difference between the windows api thingys setpixel,
and setpixelV
-
Oct 23rd, 2002, 06:54 PM
#2
Frenzied Member
As you can see, SetPixel returns a Long value, and that is the previous color of the changed pixel.
However, SetPixelV does not return any value, so its a bit faster
-
Oct 23rd, 2002, 07:14 PM
#3
Thread Starter
Hyperactive Member
As you can see, SetPixel returns a Long value, and that is the previous color of the changed pixel.
However, SetPixelV does not return any value, so its a bit faster
VB Code:
Public Declare Function SetPixelV Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
r u shure the as long at the end makes it look likes its returning something
if not the pixel color befor then what??
-
Oct 23rd, 2002, 07:34 PM
#4
Good Ol' Platypus
It'll just be 0 if it returns nothing (or the error code, maybe).
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Oct 23rd, 2002, 07:38 PM
#5
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|