Skip to content

Commit

Permalink
Updated NuGet packages + fixed drawing of images
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Feb 28, 2024
1 parent 189928f commit 3d67fb3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="DeveCoolLib" Version="1.0.571" />
<PackageReference Include="DeveCoolLib" Version="1.0.582" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
</ItemGroup>

Expand Down
Expand Up @@ -7,13 +7,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions DeveMazeGeneratorCore.Web/Controllers/MazesController.cs
Expand Up @@ -163,21 +163,21 @@ public ActionResult MazeDynamicOpenSeaDragon(int level, int xPartNumber, int yPa
var font = new Font(fontFamily, 26);
var fontSmall = new Font(fontFamily, 12);

var textOptions = new TextOptions(font)
var textOptions = new RichTextOptions(font)
{
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
TextAlignment = TextAlignment.Center,
Origin = new Point(partWidth / 2, partHeight / 2),
};

var textOptionsSmall = new TextOptions(fontSmall)
var textOptionsSmall = new RichTextOptions(fontSmall)
{
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
TextAlignment = TextAlignment.Center,
Origin = new Point(partWidth / 2, partHeight - 10),
};
};

image.Mutate(x => x.DrawText(textOptions, $"X: {xPartNumber}\nY: {yPartNumber}\nLevel: {level}\n\nZoom in\nfurther", Color.White));
image.Mutate(x => x.DrawText(textOptionsSmall, $"Maze will show at level: {deepestLevel}", Color.White));
Expand Down
4 changes: 2 additions & 2 deletions DeveMazeGeneratorCore.Web/DeveMazeGeneratorCore.Web.csproj
Expand Up @@ -20,8 +20,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta19" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta15" />
<PackageReference Include="SixLabors.Fonts" Version="2.0.2" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion DeveMazeGeneratorCore/DeveMazeGeneratorCore.csproj
Expand Up @@ -32,7 +32,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.6" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
</ItemGroup>

</Project>

0 comments on commit 3d67fb3

Please sign in to comment.