Skip to content

Commit

Permalink
ImageSharp API fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Oct 10, 2023
1 parent 3ee35c1 commit c713a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TemplateBuilder/DicomFileTagsUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ protected override void OnLoad(EventArgs e)
{
using var renderedImage = new DicomImage(dicom.Dataset).RenderImage().AsSharpImage();
using MemoryStream ms = new();
renderedImage.Save(ms,renderedImage.GetConfiguration().ImageFormatsManager.FindEncoder(PngFormat.Instance));
renderedImage.Save(ms,renderedImage.GetConfiguration().ImageFormatsManager.GetEncoder(PngFormat.Instance));
ms.Seek(0, SeekOrigin.Begin);
DicomImage = new(ms);
DicomImage = new Bitmap(ms);
pictureBox1.Image = DicomImage;
}
catch (Exception)
Expand Down

0 comments on commit c713a95

Please sign in to comment.