Original Post
Hello, I am using DirectX to render images for html pages. So what I need to know is what would be the fastest way to get directX to render something and get the rendered image in the form of either a bitmap or an array of bytes. This is how i'm currently getting the image directX rendered: I'm rendering to a texture then saving it into a graphics stream then saving the stream into a bitmap. Is there a faster way to do this? web_scripter
GraphicsStream stream = TextureLoader.SaveToStream( ImageFileFormat.Png, renderTexture );
Bitmap bmp = new Bitmap( width, height, width, PixelFormat.Format32bppRgb, stream.InternalData );