Added elements: Rotate, Unconstrained

This commit is contained in:
Marcin Ziąbek
2021-08-01 21:09:16 +02:00
parent 3b8c300126
commit 6d3c8d0708
9 changed files with 140 additions and 52 deletions
+30
View File
@@ -649,6 +649,7 @@ namespace QuestPDF.Examples
.Render(container =>
{
container
.Padding(10)
.Border(2)
.Row(row =>
{
@@ -663,5 +664,34 @@ namespace QuestPDF.Examples
});
});
}
[Test]
public void Floating()
{
RenderingTest
.Create()
.PageSize(400, 300)
.Render(container =>
{
container
.Padding(50)
.Layers(layers =>
{
layers
.PrimaryLayer()
.Background(Colors.Green.Lighten4)
.Extend();
layers
.Layer()
.Rotate(17)
.TranslateX(-100)
.TranslateY(-50)
.Width(200)
.Height(100)
.Background(Colors.Green.Medium);
});
});
}
}
}