Post

 Resources 

Console


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


-
Up One Level | Back to Forum

Hmm, but can I do this then (see msg) Almar Joling (0 replies) (2000-Oct-2)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 45 visitors within the last 20 minutes
RSS News Feed