public BlazorSkiaSurface(GRContext context, SKHtmlCanvasInterop.GLInfo glInfo, SKColorType colorType, PixelSize size, double scaling, GRSurfaceOrigin origin)
 {
     Context   = context;
     GlInfo    = glInfo;
     ColorType = colorType;
     Size      = size;
     Scaling   = scaling;
     Origin    = origin;
 }
예제 #2
0
 internal void SetSurface(GRContext context, SKHtmlCanvasInterop.GLInfo glInfo, SKColorType colorType, PixelSize size, double scaling)
 {
     _currentSurface =
         new BlazorSkiaSurface(context, glInfo, colorType, size, scaling, GRSurfaceOrigin.BottomLeft);
 }