I am developing an application where I have two dimensional array consisting pixel values of a 256 color bitmap image. These values are calculated with in the program and need to be displayed on the screen at maximum possible speed (Similar to image processing kind of stuff and all the bmp images are of constant size 768 X 1024 pixels). There is no necessity to write them to a file or create DIB objects. Also, I need to do lot of simple matrix computations like addition and the resultant array values is what gets displayed on the screen in Runtime. I have read articles on win 32 and also using MFC classes and Open GL but unable to find any article which describes how to display runtime generated bitmap. Anybody can advise me what is the best path to choose for this application, if speed is my major concern or if I am missing to utilize a functionality that MFC or windows API provides to use with memory based bitmaps.