Creating a DIB from a Direct3D texture...

Started by
0 comments, last by turnpast 19 years, 3 months ago
Hello, does anybody have any source, or just some idea, of how I would go about creating a Device Independent Bitmap from the bits of a Direct3d texture? I need to send to the printer some of the texture in my interface and it is proving quite difficult. Even if someone had some source for printing a bitmap that would be extremely useful. Thanks in advance for any help. Mark Coleman
Advertisement
If you are using directx it is really simple. Get the texture and than save with Dib file format.

in managed land it would look somehting like this:

TextureLoader.Save("someFile.bmp",ImageFileFormat.Dib,someTexture);

in unmanaged land you use the D3DXSaveTextureToFile function with similar args.

This topic is closed to new replies.

Advertisement