Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Sep 25, 2023
1 parent 52bfea0 commit c3d2214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/DrawWithImageSharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public static void RenderTextProcessorWithAlignment(

FontRectangle textSize = TextMeasurer.MeasureSize(text, textOptions);
using var img = new Image<Rgba32>(((int)textSize.Width * 2) + 20, ((int)textSize.Height * 2) + 20);
Size size = img.Size();
Size size = img.Size;
textOptions.Origin = new PointF(size.Width / 2F, size.Height / 2F);

img.Mutate(x => x.Fill(Color.Black).ApplyProcessor(
Expand Down

0 comments on commit c3d2214

Please sign in to comment.