Beispiel #1
0
 public Player(Context2D CanvasContext, int X, int Y, double Radius, string Color)
 {
     ctx    = CanvasContext;
     x      = X;
     y      = Y;
     radius = Radius;
     color  = Color;
 }
Beispiel #2
0
        public async Task <SKCanvas2DContext> InitializeAsync()
        {
            _context = await Component.CreateCanvas2DAsync();

            _batch = await _context.CreateBatchAsync();

            await _batch.LineCapAsync(LineCap.Round);

            return(this);
        }
Beispiel #3
0
 public virtual void Draw(Context2D ctx)
 {
 }
 public override void Draw()
 {
     Context2D.DrawGeometry(geometry, brush, strokeWidth, strokeStyle);
 }
 public override void Draw()
 {
     Context2D.DrawEllipse(ellipse, brush, strokeWidth, strokeStyle);
 }
 public override void Draw()
 {
     Context2D.DrawBitmap(bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle);
 }
 public override void Draw()
 {
     Context2D.FillRoundedRectangle(roundedRect, brush);
 }
 public override void Draw()
 {
     Context2D.DrawLine(point0, point1, brush, strokeWidth, strokeStyle);
 }
Beispiel #9
0
 public override void RenderSelf(Context2D ctx)
 {
 }
 public override void Draw()
 {
     Context2D.FillGeometry(geometry, brush, opacityBrush);
 }
 public override void Draw()
 {
     Context2D.FillEllipse(ellipse, brush);
 }
 public override void Draw()
 {
     Context2D.Clear(clearColor);
 }
 public override void Draw()
 {
     Context2D.DrawTextLayout(origin, textLayout, defaultFillBrush, options);
 }
 public override void Draw()
 {
     Context2D.DrawText(text, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode);
 }
 public override void Draw()
 {
     Context2D.DrawRoundedRectangle(roundedRect, brush, strokeWidth, strokeStyle);
 }
 public override void Draw()
 {
     Context2D.FillMesh(mesh, brush);
 }
 public override void Draw()
 {
     Context2D.FillOpacityMask(opacityMask, brush, content, destinationRectangle, sourceRectangle);
 }
Beispiel #18
0
 public abstract void RenderSelf(Context2D ctx);
 public override void Draw()
 {
     Context2D.DrawGlyphRun(baselineOrigin, glyphRun, foregroundBrush, measuringMode);
 }