capture desktop screenshot by graphics, directX and openGL