| 123456789101112131415161718192021222324252627282930313233343536 |
- using NUnit.Framework;
- using QuestPDF.Examples.Engine;
- using QuestPDF.Fluent;
- using QuestPDF.Helpers;
- using QuestPDF.Infrastructure;
- using SkiaSharp;
- using Svg.Skia;
- namespace QuestPDF.Examples
- {
- public class SvgImageExample
- {
- [Test]
- public void BorderRadius()
- {
- RenderingTest
- .Create()
- .PageSize(175, 100)
- .ProduceImages()
- .ShowResults()
- .Render(container =>
- {
- container
- .Background(Colors.Grey.Lighten2)
- .Padding(25)
- .Canvas((canvas, space) =>
- {
- using var svg = new SKSvg();
- svg.Load("pdf-icon.svg");
-
- canvas.DrawPicture(svg.Picture);
- });
- });
- }
- }
- }
|