|
DXViewRenderToBitmap(Int32, Int32, Int32, Int32, Boolean) Method |
RenderToBitmap renders the 3D scene to bitmap with specified width, height, multi-sampling count and DPI.
See also other overrides of RenderToBitmap method:
RenderToBitmap,
RenderToBitmap(Int32, Int32, Int32, Double, Double),
RenderToBitmap(Int32, Int32, Int32, Int32, Double, Double, Boolean),
RenderToBitmap(WriteableBitmap, Int32, Int32),
RenderToBitmap(DXViewRenderedBitmapReadyDelegate, Int32, Int32, Int32, Int32, Double, Double, Boolean).
Namespace: Ab3d.DirectX.ControlsAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax public BitmapSource RenderToBitmap(
int width,
int height,
int preferedMultisampling = -1,
int supersamplingCount = 1,
bool convertToNonPreMultipledAlpha = false
)
Parameters
- width Int32
- width of the rendered bitmap
- height Int32
- height of the rendered bitmap
- preferedMultisampling Int32 (Optional)
- multi-sampling count that is used to render the image (used if possible). When -1 is specified (by default), then the current multi-sampling count from DXScene is used.
- supersamplingCount Int32 (Optional)
- super-sampling count (possible values: 1 no super-sampling, 4, 16, 64)
- convertToNonPreMultipledAlpha Boolean (Optional)
- when true (false by default) then the image in converted into non-premultiplied alpha (this can be used when saving to png file that does not support pre-multiplied alpha)
Return Value
BitmapSourceBitmapSource as rendered the 3D scene
See Also