Sign in to follow this  
Jazonxyz

How can I made a bitmap?

Recommended Posts

Is there a way to create a bitmap image with DirectX 9 and save it into a file which I can reaccess with other programs like paint?

Share this post


Link to post
Share on other sites
Here is a typical save method for a texture...

[source lang = "c#"]
/// <summary>
/// Saves the Collage image to file.
/// </summary>
/// <param name="filename">The filename of the collage to save.</param>
/// <param name="format">The format of the image.</param>
public void SaveCollageTexture(string filename, ImageFileFormat format)
{
if (this.masterTexture != null) TextureLoader.Save(filename, format, this.masterTexture);
}



HTH,

Devin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this