, , , .
DirectX. , . , , . , , . "swizzled" , , . , , .
, Windows/DirectX . D3D1x Im , IDXGIOutput. , , ...
win32 ( C), .
.
unsigned int* pBits = malloc( width * height );
DC.
HBITMAP hBitmap = ::CreateBitmap( width, height, 1, 32, NULL );
SelectObject( hDC, (HGDIOBJ)hBitmap );
pBits, . , -.
::SetBitmapBits( hBitmap, width * height * 4, (void*)pBits )
, ( DeleteObject) !
: , DX Diag. IDxDiagProvider IDxDiagContainer DX SDK.