|
|
@@ -2,6 +2,7 @@ using QuestPDF.Examples.Engine;
|
|
|
using QuestPDF.Fluent;
|
|
|
using QuestPDF.Helpers;
|
|
|
using QuestPDF.Infrastructure;
|
|
|
+using SkiaSharp;
|
|
|
|
|
|
namespace QuestPDF.Examples
|
|
|
{
|
|
|
@@ -207,6 +208,18 @@ namespace QuestPDF.Examples
|
|
|
stack.Element().PaddingTop(40).Text("Dupa 2");
|
|
|
});
|
|
|
|
|
|
+ layers.Layer().Canvas((canvas, size) =>
|
|
|
+ {
|
|
|
+ using var paint = new SKPaint
|
|
|
+ {
|
|
|
+ Color = SKColors.Red,
|
|
|
+ StrokeWidth = 5
|
|
|
+ };
|
|
|
+
|
|
|
+ canvas.Translate(size.Width / 2, size.Height / 2);
|
|
|
+ canvas.DrawCircle(0, 0, 50, paint);
|
|
|
+ });
|
|
|
+
|
|
|
layers.Layer().Background("#8F00").Extend();
|
|
|
layers.Layer().PaddingTop(40).Text("Super", TextStyle.Default.Size(24));
|
|
|
});
|