 |
BitmapRendering Class |
BitmapRendering class contains static methods that can render any FrameworkElement to bitmap.
Inheritance Hierarchy Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntaxpublic class BitmapRendering
The BitmapRendering type exposes the following members.
Constructors
Methods | Name | Description |
---|
  | RenderToBitmap(FrameworkElement, Brush, Int32, RenderTargetBitmap) |
Renders FrameworkElement specified with objectToRender to bitmap with specified backgroundBrush and dpi.
The size of the created bitmap is the same as the size of the objectToRender.
|
  | RenderToBitmap(FrameworkElement, Int32, Int32, Boolean, Int32, Brush, Int32, RenderTargetBitmap) |
Renders FrameworkElement specified with objectToRender to bitmap.
It is possible to specify custom bitmap width and height (when customWidth and customHeight are bigger than 0).
When antialiasingLevel is bigger than 1, the bitmap is rendered into bigger image and than scaled down to create an antialiasing effect.
|
Top
See Also