Ejemplo n.º 1
0
        public void CanCreateFromRecorder()
        {
            var cullRect = SKRect.Create(100, 100);

            using (var recorder = new SKPictureRecorder())
                using (var canvas = recorder.BeginRecording(cullRect))
                {
                    canvas.DrawColor(SKColors.Blue);

                    using (var drawable = recorder.EndRecordingAsDrawable())
                    {
                        Assert.NotNull(drawable);
                        Assert.Equal(cullRect, drawable.Bounds);
                    }
                }
        }