Skip to content

Commit

Permalink
update to v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed May 28, 2023
1 parent 4fa6891 commit fc5a161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Captcha.Net.Test/UnitTests/CaptchaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,11 @@ public void GetRotationTest(int width, int height)

img.Mutate(ctx => ctx.BackgroundColor(backgroundColor));
img.Mutate(ctx => ctx.DrawLines(lineColor, thickness, new PointF[] { new PointF(middleOffsetOfWidth, 0), new PointF(middleOffsetOfWidth, height) }));
img.SaveAsPng("D:\\test1.png");

// act: rotate 90 degree to a horizontal line
AffineTransformBuilder rotation = GetRotation(rotationDegrees, new PointF(middleOffsetOfWidth, middleOffsetOfHeight));
img.Mutate(ctx => ctx.Transform(rotation)); // now the line is vertical
var middleRowPixels = img.DangerousGetPixelRowMemory(middleOffsetOfWidth).Span;
img.SaveAsPng("D:\\test2.png");

// assert
foreach (var pixel in middleRowPixels)
Expand Down
4 changes: 2 additions & 2 deletions src/Captcha.Net/Captcha.Net.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Library</OutputType>
Expand All @@ -7,7 +7,7 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageId>Captcha.Net</PackageId>
<Title>Captcha.Net</Title>
<FileVersion>1.1.1</FileVersion>
<FileVersion>1.1.2</FileVersion>
<Authors>Bezzad</Authors>
<Description>CAPTCHA Generator with .Net 6.0</Description>
<Copyright>2023</Copyright>
Expand Down

0 comments on commit fc5a161

Please sign in to comment.