From 74bf5db8d47dfb1cb610dea6826358ccecfcb2b4 Mon Sep 17 00:00:00 2001 From: tonygameplan <50851017+tonygameplan@users.noreply.github.com> Date: Wed, 29 May 2019 20:37:26 -0700 Subject: [PATCH 1/2] Fix missing PixelFormats line in first API example "" does not appear to be defined without the "using SixLabors.ImageSharp.PixelFormats;" line and causes a "The type or namespace name 'Rgba32' could not be found (are you missing a using directive or an assembly reference?) (CS0246)" error to occur. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 515fc71969..0b6c020c50 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ On platforms supporting netstandard 1.3+ ```csharp using SixLabors.ImageSharp; using SixLabors.ImageSharp.Processing; +using SixLabors.ImageSharp.PixelFormats; + // Image.Load(string path) is a shortcut for our default type. // Other pixel formats use Image.Load(string path)) From 75daccfbf039bdab284c49be6ce3c22de0ec014f Mon Sep 17 00:00:00 2001 From: tonygameplan <50851017+tonygameplan@users.noreply.github.com> Date: Wed, 29 May 2019 21:51:29 -0700 Subject: [PATCH 2/2] Remove stray newline --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 0b6c020c50..a5c3457fac 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,6 @@ using SixLabors.ImageSharp; using SixLabors.ImageSharp.Processing; using SixLabors.ImageSharp.PixelFormats; - // Image.Load(string path) is a shortcut for our default type. // Other pixel formats use Image.Load(string path)) using (Image image = Image.Load("foo.jpg"))