Updated Questions and Answers (markdown)

master
asterixorobelix 9 years ago
parent
commit
3ad4440611
  1. 8
      Questions-and-Answers.md

8
Questions-and-Answers.md

@ -4,10 +4,10 @@ See: https://github.com/SixLabors/ImageSharp/issues/418
## How do I convert a JPG to a PNG image? ## How do I convert a JPG to a PNG image?
` `
using (Image<Rgba32> image =Image.Load<Rgba32>($"{filename}.jpg")) using (Image<Rgba32> image =Image.Load<Rgba32>($"{filename}.jpg"))
{ {
image.Save($"{filename}.png"); image.Save($"{filename}.png");
} }
` `
ImageSharp will automatically choose the encoding based on the file extension used in the filename (eg .jpg or .png) ImageSharp will automatically choose the encoding based on the file extension used in the filename (eg .jpg or .png)

Loading…
Cancel
Save