I have a tiff file while which i'm displaying in a CScrollView using onDraw.
In Ondraw i have the following code:
for(unsigned int y=0; y < height; y++)
for(unsigned int x=0; x < width; x++)
if( pixel(image,x,y) )
where image is a byte array where bits are pixel on/off switches and the fuction pixel above tests the pixel value for on or off.
however, every time i scroll or repaint the screen this take a time to redraw.
Does anyone know a way to speed this process up.