diff --git a/TemplateBuilder/DicomFileTagsUI.cs b/TemplateBuilder/DicomFileTagsUI.cs
index d99c6c9..98daffb 100644
--- a/TemplateBuilder/DicomFileTagsUI.cs
+++ b/TemplateBuilder/DicomFileTagsUI.cs
@@ -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)
diff --git a/TemplateBuilder/TemplateBuilder.csproj b/TemplateBuilder/TemplateBuilder.csproj
index ef8f43f..45daa1c 100644
--- a/TemplateBuilder/TemplateBuilder.csproj
+++ b/TemplateBuilder/TemplateBuilder.csproj
@@ -59,9 +59,9 @@
-
+
-
+