Пример #1
0
        public void DrawTo(ICanvas2D dc)
        {
            if (_SpriteAsset == null)
            {
                var bmp = GetDisplayBitmap();
                _SpriteAsset = ImageSource.CreateFromBitmap(bmp, (bmp.Width, bmp.Height), (0, 0));
            }

            dc.DrawImage(Matrix3x2.Identity, _SpriteAsset);
        }