SkiaSharp.Views.WPF A visual element that can be drawn on using SkiaSharp drawing commands. Creates a new instance of the view. Gets the current canvas size. The canvas size may be different to the view size as a result of the current device's pixel density. Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays. By default, when false, the canvas is resized to 1 canvas pixel per display pixel. When true, the canvas is resized to device independent pixels, and then stretched to fill the view. Although performance is improved and all objects are the same size on different display densities, blurring and pixelation may occur. The event arguments that contain the drawing surface and information. Implement this to draw on the canvas. The drawing instructions for a specific element. This context is provided to the layout system. When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing. Details of the old and new size involved in the change. Raises the SizeChanged event, using the specified information as part of the eventual event data. Occurs when the the canvas needs to be redrawn. Various extension methods to convert between SkiaSharp types and Windows types. The SkiaSharp color. Converts a SkiaSharp color into a Windows color. Returns a Windows color. The SkiaSharp point. Converts a SkiaSharp point into a Windows point. Returns a Windows point. The SkiaSharp rectangle. Converts a SkiaSharp rectangle into a Windows rectangle. Returns a Windows rectangle. The SkiaSharp size. Converts a SkiaSharp size into a Windows size. Returns a Windows size. The Windows BitmapSource to convert. Converts a Windows BitmapSource into a SkiaSharp bitmap. Returns a copy of the bitmap data as a SkiaSharp bitmap. The Windows color. Converts a Windows color into a SkiaSharp color. Returns a SkiaSharp color. The Windows BitmapSource to convert. Converts a Windows BitmapSource into a SkiaSharp image. Returns a copy of the bitmap data as a SkiaSharp image. The Windows BitmapSource to convert. The SkiaSharp pixmap to hold the copy of the bitmap data. Converts a Windows BitmapSource into a SkiaSharp pixmap. The Windows point. Converts a Windows point into a SkiaSharp point. Returns a SkiaSharp point. The Windows rectangle Converts a Windows rectangle into a SkiaSharp rectangle. Returns a SkiaSharp rectangle. The Windows size. Converts a Windows size into a SkiaSharp size. Returns a SkiaSharp size. The SkiaSharp bitmap. Converts a SkiaSharp bitmap into a Windows WriteableBitmap. Returns a copy of the bitmap data as a Windows WriteableBitmap. The SkiaSharp image. Converts a SkiaSharp image into a Windows WriteableBitmap. Returns a copy of the image data as a Windows WriteableBitmap. The SkiaSharp pixmap. Converts a SkiaSharp pixmap into a Windows WriteableBitmap. Returns a copy of the pixel data as a Windows WriteableBitmap. The SkiaSharp picture. The dimensions of the picture. Converts a SkiaSharp picture into a Windows WriteableBitmap. Returns a copy of the picture as a Windows WriteableBitmap.