SKCanvasView 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.
A UIKit view that can be drawn on using SkiaSharp drawing commands.
[Foundation.Register("SKCanvasView")]
public class SKCanvasView : UIKit.UIView, IDisposable, System.ComponentModel.IComponent
- Inheritance
-
SKCanvasView
- Attributes
- Implements
Constructors
SKCanvasView() |
Default constructor that initializes a new instance of SKCanvasView. |
SKCanvasView(CGRect) |
Initializes the SKCanvasView with the specified frame. |
SKCanvasView(IntPtr) |
A constructor used when creating managed representations of unmanaged objects; Called by the runtime. |
Properties
CanvasSize |
Gets the current canvas size. |
IgnorePixelScaling |
Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays. |
Methods
AwakeFromNib() |
Called after the object has been loaded from the nib file. Overriders must call the base method. |
Dispose(Boolean) |
Releases the unmanaged resources used by the SKCanvasView and optionally releases the managed resources. |
Draw(CGRect) |
Draws the view within the passed-in rectangle. |
DrawInSurface(SKSurface, SKImageInfo) |
Obsolete.
Implement this to draw on the canvas. |
LayoutSubviews() |
Lays out subviews. |
OnPaintSurface(SKPaintSurfaceEventArgs) |
Implement this to draw on the canvas. |
WillMoveToWindow(UIWindow) |
Events
PaintSurface |
Occurs when the the canvas needs to be redrawn. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for