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

            _batch = await _context.CreateBatchAsync();

            await _batch.LineCapAsync(LineCap.Round);

            return(this);
        }
示例#3
0
文件: Shape.cs 项目: rexzh/SharpJs
 public virtual void Draw(Context2D ctx)
 {
 }
示例#4
0
 public override void Draw()
 {
     Context2D.DrawGeometry(geometry, brush, strokeWidth, strokeStyle);
 }
示例#5
0
 public override void Draw()
 {
     Context2D.DrawEllipse(ellipse, brush, strokeWidth, strokeStyle);
 }
示例#6
0
 public override void Draw()
 {
     Context2D.DrawBitmap(bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle);
 }
示例#7
0
 public override void Draw()
 {
     Context2D.FillRoundedRectangle(roundedRect, brush);
 }
示例#8
0
 public override void Draw()
 {
     Context2D.DrawLine(point0, point1, brush, strokeWidth, strokeStyle);
 }
示例#9
0
文件: Image.cs 项目: rexzh/SharpJs
 public override void RenderSelf(Context2D ctx)
 {
 }
示例#10
0
 public override void Draw()
 {
     Context2D.FillGeometry(geometry, brush, opacityBrush);
 }
示例#11
0
 public override void Draw()
 {
     Context2D.FillEllipse(ellipse, brush);
 }
示例#12
0
 public override void Draw()
 {
     Context2D.Clear(clearColor);
 }
示例#13
0
 public override void Draw()
 {
     Context2D.DrawTextLayout(origin, textLayout, defaultFillBrush, options);
 }
示例#14
0
 public override void Draw()
 {
     Context2D.DrawText(text, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode);
 }
示例#15
0
 public override void Draw()
 {
     Context2D.DrawRoundedRectangle(roundedRect, brush, strokeWidth, strokeStyle);
 }
示例#16
0
 public override void Draw()
 {
     Context2D.FillMesh(mesh, brush);
 }
示例#17
0
 public override void Draw()
 {
     Context2D.FillOpacityMask(opacityMask, brush, content, destinationRectangle, sourceRectangle);
 }
示例#18
0
 public abstract void RenderSelf(Context2D ctx);
示例#19
0
 public override void Draw()
 {
     Context2D.DrawGlyphRun(baselineOrigin, glyphRun, foregroundBrush, measuringMode);
 }