Click to See Complete Forum and Search --> : Fast Updates for Digital Paint prog?


CosmikMan
March 2nd, 2003, 06:03 PM
I'm developing a digital painting program at the moment and I'm not extremely well versed on the windows 32 API (non MFC). Anyway basically i have a digital painting program that stores pixel data in a 2d array. now i need a fairly fast way to go from that 2d array to the screen whenever updating is needed. What i was thinking is that i could store the pixel data in an intermediate surface that could be quickly drawn to the HDC (like an HBitmap for instance) whenever a regular update is needed and then i can draw to the intermediate surface in order to update the actual content of the image. So basically what i need is a little guidance on how to use an intermediate surface to get the fast updates and how to get my pixel data from my 2d array (if thats even the best storage method, feel free to make suggestions) to my intermediate surface in a fairly speedy manner. Thank you much to whomever responds.