Archived

This topic is now archived and is closed to further replies.

Get Imagedata with IDirect3DDevice9?

This topic is 5009 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can I get the mixed Imagdata with IDirect3DDevice9 in memory?Or get Imagedata with IDirect3DSurface9?Not to use the function D3dxSaveSurfaceToFile(). Anyone who have an idea please help me! Thanks!

Share this post


Link to post
Share on other sites
D3DSURFACE_DESC d3dsd;
D3DLOCKED_RECT d3dlr;
pSurf->GetDesc(&d3dsd);
if(d3dsd.Format != D3DFMT_X8R8G8B8)
return false;
if d3dsd.Format == D3DFMT_X8R8G8B8 I can get the data.but when the format is D3DFMT_YUY2 I have no idea!

Share this post


Link to post
Share on other sites