Save a jpg image of my scene
#2
To render the 3D scene to a bitmap you can use the Camera.RenderToBitmap method to get a bitmap. You can specify many parameters (size of bitmap, DPI settings and anti-aliasing).

See the Utilities/RenderToBitmap sample in the Ab3d.PowerToys samples project:

   

The sample shows how to save to png file. To save to jpg file just replace the PngBitmapEncoder with the JpegBitmapEncoder (note that there you can also specify the QualityLevel) in the SaveBitmap method.


When using DXEngine to render the scene, then use DXViewportView.RenderToBitmap method instead of the method on Camera (see DXEngineOther/RenderToBitmap.xaml sample)
Andrej Benedik
  


Messages In This Thread
Save a jpg image of my scene - by z8195aa - 04-19-2019, 04:17 AM
RE: Save a jpg image of my scene - by abenedik - 04-19-2019, 08:35 AM
RE: Save a jpg image of my scene - by z8195aa - 05-12-2019, 03:55 AM
RE: Save a jpg image of my scene - by abenedik - 05-13-2019, 11:51 AM
RE: Save a jpg image of my scene - by z8195aa - 06-03-2019, 01:15 AM
RE: Save a jpg image of my scene - by abenedik - 06-03-2019, 10:26 AM
RE: Save a jpg image of my scene - by z8195aa - 06-03-2019, 10:56 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)