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 view that can be drawn on using SkiaSharp drawing commands.
public class SKCanvasView : SkiaSharp.Views.Tizen.CustomRenderingView
- Inheritance
Constructors
| Name | Description |
|---|---|
| SKCanvasView(EvasObject) |
Initializes a new instance of the SKCanvasView class. |
Fields
| Name | Description |
|---|---|
| evasImage |
The pointer to the underlying control which provides the native drawing surface. (Inherited from CustomRenderingView) |
Properties
| Name | Description |
|---|---|
| CanvasSize |
Gets the current canvas size. (Inherited from CustomRenderingView) |
| IgnorePixelScaling |
Gets or sets a value indicating whether the drawing canvas should be resized on high resolution displays. |
| RenderingMode |
Gets or sets the rendering mode. (Inherited from CustomRenderingView) |
Methods
| Name | Description |
|---|---|
| CreateDrawingSurface() |
Implemented by derived CustomRenderingView types to construct the drawing surface. (Inherited from CustomRenderingView) |
| CreateHandle(EvasObject) |
Implemented by derived CustomRenderingView types to creates a Widget handle. (Inherited from CustomRenderingView) |
| CreateNativeResources(EvasObject) |
Implemented by derived CustomRenderingView types to create the native resources which should be present throughout whole life of the control. (Inherited from CustomRenderingView) |
| DestroyDrawingSurface() |
Implemented by derived CustomRenderingView types to destroy the drawing surface. (Inherited from CustomRenderingView) |
| DestroyNativeResources() |
Implemented by derived CustomRenderingView types to destroy the native resources. (Inherited from CustomRenderingView) |
| GetRawSurfaceSize() |
Gets the raw pixel size of the drawing surface. |
| GetSurfaceSize() |
Implemented by derived CustomRenderingView types to provide the dimensions of the current drawing surface. |
| Invalidate() |
Invalidates the entire surface of the control and causes the control to be redrawn. (Inherited from CustomRenderingView) |
| OnDrawFrame() |
Implemented by derived CustomRenderingView types to draw the next frame or paint the control. |
| OnDrawFrame(SKPaintSurfaceEventArgs) |
Implement this to draw on the canvas. |
| OnResized() |
Indicate to the control that the it has been resized. (Inherited from CustomRenderingView) |
| OnUnrealize() |
Implemented by derived CustomRenderingView types to clean up resources used by the control. (Inherited from CustomRenderingView) |
| UpdateSurfaceSize(Rect) |
Implemented by derived CustomRenderingView types to update the drawing surface dimensions. |
Events
| Name | Description |
|---|---|
| PaintSurface |
Occurs when the surface needs to be redrawn. |