i try take screenshot gdi, use in ffmpeg. screenshot works , ffmpeg handle without problem. but, on computer, image not want can see below. here code use init bitmap : //-- mimagebuffer = new unsigned char[mwxhxs]; memset(mimagebuffer, 0, mwxhxs); //-- hscreendc = getdc(0); hmemorydc = createcompatibledc(hscreendc); //-- bi.bmiheader.bisize = sizeof(bitmapinfoheader); bi.bmiheader.bibitcount = 24; bi.bmiheader.biwidth = mwidth; bi.bmiheader.biheight = mheight; bi.bmiheader.bicompression = bi_rgb; bi.bmiheader.biplanes = 1; bi.bmiheader.biclrused = 24; bi.bmiheader.biclrimportant = 256; hbitmap = createdibsection(hmemorydc, &bi, dib_rgb_colors, &mimagebuffer, 0, 0); selectobject(hmemorydc, hbitmap); and here each screenshot : if(bitblt( hmemorydc, 0, 0, mwidth, mheight, hscreendc, mpx, mpy, srccopy | captureblt )) i not have error running application ugly image , on computer. don't know difference causing on these compute...