VBGamer |
|||||||||||||||||||||||||||
RE: Oh no! Getpixel isn't resolution independent! Adam Hoult (1 reply, 0 views) (2000-Oct-1) Why use GetPixel anyway ??? GetPixel as you so rightly said, can be Device Dependant....
You should be using GetDibBits This will return the 3 byte pixel set irrespective of the device... (unless it's an 8bit device, in which case it returns the 1 byte pixel set) (hence the DIB (device Independant bitmap)) This will place the actual pixel data directly into an array for you.... (remembering that you have to size the array first)
Getpixel should never be used for image manipulation anyway, it's just a waste of resources, and is unbelievably slow !... =)
Adam
|