Ejemplo n.º 1
0
        public void DrawDrawable(SKDrawable drawable, float x, float y)
        {
            if (drawable == null)
            {
                throw new ArgumentNullException(nameof(drawable));
            }
            var matrix = SKMatrix.CreateTranslation(x, y);

            DrawDrawable(drawable, ref matrix);
        }
Ejemplo n.º 2
0
        public void DrawDrawable(SKDrawable drawable, SKPoint p)
        {
            if (drawable == null)
            {
                throw new ArgumentNullException(nameof(drawable));
            }
            var matrix = SKMatrix.CreateTranslation(p.X, p.Y);

            DrawDrawable(drawable, ref matrix);
        }
Ejemplo n.º 3
0
        public void Draw(SKCanvas canvas, float x, float y)
        {
            var matrix = SKMatrix.CreateTranslation(x, y);

            Draw(canvas, ref matrix);
        }
Ejemplo n.º 4
0
        // DrawPicture

        public void DrawPicture(SKPicture picture, float x, float y, SKPaint paint = null)
        {
            var matrix = SKMatrix.CreateTranslation(x, y);

            DrawPicture(picture, ref matrix, paint);
        }