How to Render a canvas to a high-resolution texture?
Posted: 07 Apr 2017, 11:17
Hi!
One of our GUI draws vector graphics on a canvas. We want to provde an "export to file" functionality to the user, is there an easy way to do it? Note that the exported texture usually have much higher resolution for printing, so I can't just dump the content of the current render window.
In WPF we can create a RenderTargetBitmap rtb and use rtb.Render(canvas) to render the canvas into the bitmap and save it to file, but in Noesis GUI I can't find a similar way to do it. Do I need to implement it on my own? If so, can anyone show me (roughly) how to do it?
BTW: I'm using Noesis GUI 2.0 and the functionality only needs to support D3D11.
Thanks!
One of our GUI draws vector graphics on a canvas. We want to provde an "export to file" functionality to the user, is there an easy way to do it? Note that the exported texture usually have much higher resolution for printing, so I can't just dump the content of the current render window.
In WPF we can create a RenderTargetBitmap rtb and use rtb.Render(canvas) to render the canvas into the bitmap and save it to file, but in Noesis GUI I can't find a similar way to do it. Do I need to implement it on my own? If so, can anyone show me (roughly) how to do it?
BTW: I'm using Noesis GUI 2.0 and the functionality only needs to support D3D11.
Thanks!