SKXamlCanvas.PaintSurface Event
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.
Occurs when the surface needs to be redrawn.
C#
public event EventHandler<SkiaSharp.Views.UWP.SKPaintSurfaceEventArgs> PaintSurface;
C#
myView.PaintSurface += (sender, e) => {
var surface = e.Surface;
var surfaceWidth = e.Info.Width;
var surfaceHeight = e.Info.Height;
var canvas = surface.Canvas;
// draw on the canvas
canvas.Flush ();
};
There are two ways to draw on this surface: by overriding the OnPaintSurface(SKPaintSurfaceEventArgs) method, or by attaching a handler to the PaintSurface event.
Proizvod | Verzije |
---|---|
SkiaSharp Views | 1.60.x, 1.68.x, 2.80.x, 2.88.x |
Sarađujte sa nama na GitHub-u
Izvor za ovaj sadržaj možete da pronađete u usluzi GitHub, gde možete i da kreirate i pregledate probleme i povučete zahteve. Više informacija potražite u našem vodiču za saradnike.
Povratne informacije za SkiaSharp
SkiaSharp je projekat otvorenog koda. Izaberite vezu da biste pružili povratne informacije: