• Advertisement
Sign in to follow this  

How can I made a bitmap?

This topic is 3937 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

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
Advertisement
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
Sign in to follow this  

  • Advertisement