Beispiel #1
0
        public void DrawAtlasThrowsOnMismatchingArgs()
        {
            using var bmp    = new SKBitmap(new SKImageInfo(300, 300));
            using var img    = SKImage.FromBitmap(bmp);
            using var canvas = new SKCanvas(bmp);

            using var paint = new SKPaint();
            var sprites    = new[] { SKRect.Empty, SKRect.Empty };
            var transforms = new[] { SKRotationScaleMatrix.Empty };

            Assert.Throws <ArgumentException>("transforms", () => canvas.DrawAtlas(img, sprites, transforms, paint));
        }