SkiaBitmapExportContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a context for exporting bitmaps using SkiaSharp.
public ref class SkiaBitmapExportContext : Microsoft::Maui::Graphics::BitmapExportContext
public class SkiaBitmapExportContext : Microsoft.Maui.Graphics.BitmapExportContext
type SkiaBitmapExportContext = class
inherit BitmapExportContext
Public Class SkiaBitmapExportContext
Inherits BitmapExportContext
- Inheritance
Constructors
| SkiaBitmapExportContext(Int32, Int32, Single, Int32, Boolean, Boolean) |
Initializes a new instance of the SkiaBitmapExportContext class with the specified dimensions and properties. |
Properties
| Bitmap |
Gets the Skia bitmap representation of this context. |
| Canvas |
Gets the canvas that can be used to draw on this bitmap. |
| Dpi |
Gets the resolution (dots per inch) of the bitmap. (Inherited from BitmapExportContext) |
| Height |
Gets the height of the bitmap in pixels. (Inherited from BitmapExportContext) |
| Image |
Gets the resulting image after drawing operations have been performed. |
| SKImage |
Gets the Skia image representation of this bitmap. |
| Width |
Gets the width of the bitmap in pixels. (Inherited from BitmapExportContext) |
Methods
| Dispose() |
Releases all resources used by this bitmap export context. |
| WriteToStream(Stream) |
Writes the bitmap to the specified stream in PNG format. |
Extension Methods
| WriteToFile(BitmapExportContext, String) |
Writes the bitmap data from the export context to a file. |