From 8ee20d2b66287f4b07b914cac778821188f2ca03 Mon Sep 17 00:00:00 2001 From: asterixorobelix Date: Fri, 29 Dec 2017 15:06:03 +0200 Subject: [PATCH] Updated Questions and Answers (markdown) --- Questions-and-Answers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Questions-and-Answers.md b/Questions-and-Answers.md index 5799769..b2c02c0 100644 --- a/Questions-and-Answers.md +++ b/Questions-and-Answers.md @@ -3,12 +3,12 @@ See: https://github.com/SixLabors/ImageSharp/issues/418 ## How do I convert a JPG to a PNG image? -` +```cs using (Image image =Image.Load($"{filename}.jpg")) { image.Save($"{filename}.png"); } -` +``` ImageSharp will automatically choose the encoding based on the file extension used in the filename (eg .jpg or .png) ## How do I convert an image to black and white?