Skip to content

Commit b6883c1

Browse files
tonygameplanJimBobSquarePants
authored andcommitted
Fix missing "using PixelFormats" line in Readme example (#921)
* Fix missing PixelFormats line in first API example "<Rgba32>" 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. * Remove stray newline
1 parent 8107587 commit b6883c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ On platforms supporting netstandard 1.3+
7272
```csharp
7373
using SixLabors.ImageSharp;
7474
using SixLabors.ImageSharp.Processing;
75+
using SixLabors.ImageSharp.PixelFormats;
7576

7677
// Image.Load(string path) is a shortcut for our default type.
7778
// Other pixel formats use Image.Load<TPixel>(string path))

0 commit comments

Comments
 (0)