whats the difference between the windows api thingys setpixel,
and setpixelV
Printable View
whats the difference between the windows api thingys setpixel,
and setpixelV
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
Quote:
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??
It'll just be 0 if it returns nothing (or the error code, maybe).
ok thanx