Skip to content

Commit 2468eee

Browse files
Merge pull request #26 from natehitze/patch-1
Add pixel format load documentation
2 parents 8fd2bad + 532609b commit 2468eee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/imagesharp/gettingstarted.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ using SixLabors.ImageSharp.Processing;
2929
// Open the file automatically detecting the file type to decode it.
3030
// Our image is now in an uncompressed, file format agnostic, structure in-memory as
3131
// a series of pixels.
32+
// You can also specify the pixel format using a type parameter (e.g. Image<Rgba32> image = Image.Load<Rgba32>("foo.jpg"))
3233
using (Image image = Image.Load("foo.jpg"))
3334
{
3435
// Resize the image in place and return it for chaining.

0 commit comments

Comments
 (0)