Skip to content

Commit 7ffae70

Browse files
Merge pull request #168 from SixLabors/bp/updateReferences
Update References to latest stable versions
2 parents d617c40 + f033d7d commit 7ffae70

26 files changed

Lines changed: 64 additions & 70 deletions

samples/DrawShapesWithImageSharp/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,15 @@ private static void OutputClippedRectangle()
221221
paths.SaveImage("Clipping", "RectangleWithTopClipped.png");
222222
}
223223

224-
public static void SaveImage(this IPath shape, params string[] path)
225-
{
226-
new PathCollection(shape).SaveImage(path);
227-
}
224+
public static void SaveImage(this IPath shape, params string[] path) => new PathCollection(shape).SaveImage(path);
228225

229226
public static void SaveImage(this IPathCollection shape, params string[] path)
230227
{
231228
shape = shape.Translate(-shape.Bounds.Location) // touch top left
232229
.Translate(new Vector2(10)); // move in from top left
233230

234231
string fullPath = IOPath.GetFullPath(IOPath.Combine("Output", IOPath.Combine(path)));
232+
235233
// pad even amount around shape
236234
int width = (int)(shape.Bounds.Left + shape.Bounds.Right);
237235
int height = (int)(shape.Bounds.Top + shape.Bounds.Bottom);

src/ImageSharp.Drawing/ImageSharp.Drawing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<ItemGroup>
2323
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta15.15" />
24-
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.3" />
24+
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.4" />
2525
</ItemGroup>
2626

2727
<Import Project="..\..\shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems" Label="Shared" />

src/ImageSharp.Drawing/Shapes/EllipticalArcLineSegment.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ public sealed class EllipticalArcLineSegment : ILineSegment
2727
/// <summary>
2828
/// Initializes a new instance of the <see cref="EllipticalArcLineSegment"/> class.
2929
/// </summary>
30-
/// <param name="x"> The x-coordinate of the center point of the ellips from which the arc is taken.</param>
31-
/// <param name="y"> The y-coordinate of the center point of the ellips from which the arc is taken.</param>
30+
/// <param name="x"> The x-coordinate of the center point of the ellipse from which the arc is taken.</param>
31+
/// <param name="y"> The y-coordinate of the center point of the ellipse from which the arc is taken.</param>
3232
/// <param name="radiusX">X radius of the ellipsis.</param>
3333
/// <param name="radiusY">Y radius of the ellipsis.</param>
3434
/// <param name="rotation">The rotation of (<paramref name="radiusX"/> to the X-axis and (<paramref name="radiusY"/> to the Y-axis, measured in degrees clockwise.</param>
3535
/// <param name="startAngle">The Start angle of the ellipsis, measured in degrees anticlockwise from the Y-axis.</param>
3636
/// <param name="sweepAngle"> The angle between (<paramref name="startAngle"/> and the end of the arc. </param>
37-
/// <param name="transformation">The Tranformation matrix, that should be used on the arc.</param>
37+
/// <param name="transformation">The Transformation matrix, that should be used on the arc.</param>
3838
public EllipticalArcLineSegment(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float sweepAngle, Matrix3x2 transformation)
3939
{
4040
Guard.MustBeGreaterThanOrEqualTo(radiusX, 0, nameof(radiusX));

tests/Directory.Build.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
<ItemGroup>
2020
<!-- Test Dependencies -->
21-
<PackageReference Update="BenchmarkDotNet" Version="0.12.1" />
22-
<PackageReference Update="Magick.NET-Q16-AnyCPU" Version="7.22.0" />
23-
<PackageReference Update="Moq" Version="4.14.6" />
21+
<PackageReference Update="BenchmarkDotNet" Version="0.13.1" />
22+
<PackageReference Update="Magick.NET-Q16-AnyCPU" Version="8.3.3" />
23+
<PackageReference Update="Moq" Version="4.16.1" />
2424
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" Condition="'$(IsOSX)'=='true'" />
25-
<PackageReference Update="System.Drawing.Common" Version="4.7.0" />
25+
<PackageReference Update="System.Drawing.Common" Version="5.0.2" />
2626
<PackageReference Update="GeoJSON.Net" Version="1.2.19" />
27-
<PackageReference Update="SkiaSharp" Version="2.80.2" />
27+
<PackageReference Update="SkiaSharp" Version="2.80.3" />
2828
</ItemGroup>
2929

3030
</Project>

tests/ImageSharp.Drawing.Benchmarks/Drawing/DrawBeziers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using SixLabors.ImageSharp.Processing;
1313
using SDPointF = System.Drawing.PointF;
1414

15-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
15+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
1616
{
1717
public class DrawBeziers
1818
{

tests/ImageSharp.Drawing.Benchmarks/Drawing/DrawPolygon.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
using SixLabors.ImageSharp.PixelFormats;
1515
using SixLabors.ImageSharp.Processing;
1616
using SkiaSharp;
17-
using SDPoint = System.Drawing.Point;
1817
using SDPointF = System.Drawing.PointF;
1918

20-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
19+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
2120
{
2221
public abstract class DrawPolygon
2322
{
@@ -26,7 +25,7 @@ public abstract class DrawPolygon
2625
private Image<Rgba32> image;
2726

2827
private SDPointF[][] sdPoints;
29-
private System.Drawing.Bitmap sdBitmap;
28+
private Bitmap sdBitmap;
3029
private Graphics sdGraphics;
3130

3231
private SKPath skPath;

tests/ImageSharp.Drawing.Benchmarks/Drawing/DrawText.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using SDFont = System.Drawing.Font;
1414
using SDRectangleF = System.Drawing.RectangleF;
1515

16-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
16+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
1717
{
1818
[MemoryDiagnoser]
1919
public class DrawText
@@ -42,7 +42,7 @@ public class DrawText
4242
public void Setup()
4343
{
4444
this.image = new Image<Rgba32>(Width, Height);
45-
this.sdBitmap = new Bitmap(Width, Height);
45+
this.sdBitmap = new SDBitmap(Width, Height);
4646
this.sdGraphics = Graphics.FromImage(this.sdBitmap);
4747
this.sdGraphics.InterpolationMode = InterpolationMode.Default;
4848
this.sdGraphics.SmoothingMode = SmoothingMode.AntiAlias;

tests/ImageSharp.Drawing.Benchmarks/Drawing/DrawTextOutline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
using SDRectangleF = System.Drawing.RectangleF;
1313

14-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
14+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
1515
{
1616
[MemoryDiagnoser]
1717
public class DrawTextOutline

tests/ImageSharp.Drawing.Benchmarks/Drawing/FillPathGradientBrush.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using BenchmarkDotNet.Attributes;
55
using SixLabors.ImageSharp.Drawing.Processing;
66
using SixLabors.ImageSharp.PixelFormats;
77
using SixLabors.ImageSharp.Processing;
88

9-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
9+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
1010
{
1111
public class FillPathGradientBrush
1212
{
@@ -23,8 +23,11 @@ public void FillGradientBrush_ImageSharp()
2323
{
2424
var star = new Star(50, 50, 5, 20, 45);
2525
PointF[] points = star.Points.ToArray();
26-
Color[] colors = { Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple,
27-
Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple };
26+
Color[] colors =
27+
{
28+
Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple,
29+
Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple
30+
};
2831

2932
var brush = new PathGradientBrush(points, colors, Color.White);
3033

tests/ImageSharp.Drawing.Benchmarks/Drawing/FillPolygon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using SDBitmap = System.Drawing.Bitmap;
1919
using SDPointF = System.Drawing.PointF;
2020

21-
namespace SixLabors.ImageSharp.Drawing.Benchmarks
21+
namespace SixLabors.ImageSharp.Drawing.Benchmarks.Drawing
2222
{
2323
public abstract class FillPolygon
2424
{

0 commit comments

Comments
 (0)