IMG-01Render to PNG and JPEG

What this test proves

Rendering applies the window exactly as DICOM defines it.

How it is tested

  1. Open ct_mono16_64x64.dcm (window 40/400, rescale intercept -1024) with DicomImage.OpenAsync
  2. Render to PNG with RenderToPngAsync and decode the PNG with an independent decoder
  3. Compare with reference/ct_mono16_64x64_w40_400.gray8, computed with the PS3.3 LINEAR window formula in Python
  4. Pass if no pixel differs by more than 1 level and RenderToJpegAsync writes a 64 x 64 JPEG

Expected result for each license type

  • No key: Asks for key: stops and asks for a license key
  • Developer: Works
  • Pro: Works
  • Enterprise: Works
  • Expired: Works
  • Revoked: Works

Results

License Expected .NET 8.0 .NET 9.0 .NET 10.0 Result
No key Asks for key Pass
Asked for key
Pass
Asked for key
Pass
Asked for key
Pass
Developer Works Pass
Worked
Pass
Worked
Pass
Worked
Pass
Pro Works Pass
Worked
Pass
Worked
Pass
Worked
Pass
Enterprise Works Pass
Worked
Pass
Worked
Pass
Worked
Pass
Expired Works Pass
Worked
Pass
Worked
Pass
Worked
Pass
Revoked Works Pass
Worked
Pass
Worked
Pass
Worked
Pass

Recorded evidence

Captured by the automated test during the run, per license and .NET version.

License.NETCapturedTime
No key .NET 8.0
DicomKitLicenseException: DicomKit needs a license key. Get a free Developer key at https://dicomkit.plogic.dev/DeveloperKey (paid plans for production: https://dicomkit.plogic.dev/Pricing;
license state KeyRequired (NoKey)
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [none] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "none")"
1 ms
No key .NET 9.0
DicomKitLicenseException: DicomKit needs a license key. Get a free Developer key at https://dicomkit.plogic.dev/DeveloperKey (paid plans for production: https://dicomkit.plogic.dev/Pricing;
license state KeyRequired (NoKey)
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [none] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "none")"
1 ms
No key .NET 10.0
DicomKitLicenseException: DicomKit needs a license key. Get a free Developer key at https://dicomkit.plogic.dev/DeveloperKey (paid plans for production: https://dicomkit.plogic.dev/Pricing;
license state KeyRequired (NoKey)
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [none] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "none")"
1 ms
Developer .NET 8.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 1825 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [developer] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "developer")"
14 ms
Developer .NET 9.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [developer] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "developer")"
17 ms
Developer .NET 10.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [developer] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "developer")"
23 ms
Pro .NET 8.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 1825 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [pro] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "pro")"
14 ms
Pro .NET 9.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [pro] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "pro")"
14 ms
Pro .NET 10.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [pro] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "pro")"
16 ms
Enterprise .NET 8.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 1825 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [enterprise] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "enterprise")"
14 ms
Enterprise .NET 9.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [enterprise] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "enterprise")"
14 ms
Enterprise .NET 10.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [enterprise] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "enterprise")"
17 ms
Expired .NET 8.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 1825 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [expired] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "expired")"
15 ms
Expired .NET 9.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [expired] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "expired")"
14 ms
Expired .NET 10.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [expired] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "expired")"
16 ms
Revoked .NET 8.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 1825 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [revoked] [net8.0] Render to PNG and JPEG(caseId: "IMG-01", license: "revoked")"
17 ms
Revoked .NET 9.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [revoked] [net9.0] Render to PNG and JPEG(caseId: "IMG-01", license: "revoked")"
14 ms
Revoked .NET 10.0
DicomImage.OpenAsync(ct_mono16_64x64.dcm (9100 bytes)); RenderToPngAsync with the dataset window 40/400
PNG 2560 bytes, 64x64, 1 channel(s); vs reference/ct_mono16_64x64_w40_400.gray8: max |diff| 0, 0 of 4096 pixels differ
RenderToJpegAsync(quality 90): 1874 bytes, SOF0 64x64, ends with EOI
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "IMG-01 [revoked] [net10.0] Render to PNG and JPEG(caseId: "IMG-01", license: "revoked")"
16 ms

Test run

Run
2ce13edc-f525-4ffb-ae07-648e5221cef9
Started (UTC)
2026-10-26 21:15:23, finished 21:21:01
Source commit
b804fb7
Environment
Microsoft Windows 11 Pro 10.0.26200 build 26200; Microsoft.AspNetCore.App 8.0.29, Microsoft.AspNetCore.App 9.0.18, Microsoft.AspNetCore.App 10.0.12, Microsoft.NETCore.App 3.1.32, Microsoft.NETCore.App 8.0.3, Microsoft.NETCore.App 8.0.29, Microsoft.NETCore.App 9.0.18, Microsoft.NETCore.App 10.0.12, Microsoft.WindowsDesktop.App 8.0.3, Microsoft.WindowsDesktop.App 8.0.29, Microsoft.WindowsDesktop.App 9.0.18, Microsoft.WindowsDesktop.App 10.0.12; Visual Studio Community 2026 18.10.3 (18.10.12224.181)
DicomKit
1.0.0 SHA-256 96ada39062c07bca37511abfb6baac0a44d914fb705bac01d77cb02146fdac0e
DicomKit.Cli
1.0.0 SHA-256 f8ffe70dc375cfe0d60881027e7cedb2502bc78ec5f5037f1d41b6c2481e1c84
DicomKit.Imaging
1.0.0 SHA-256 015b51ea833039d934ba153cae50d393fb77846430ca3fc3d65b4fb8cf4346ed
DicomKit.Web
1.0.0 SHA-256 2a2f4f7f02e1849929294062bee7dd8f3a24449428469c1fddb6982e77218a7b
DicomKit.Web.AspNetCore
1.0.0 SHA-256 daa1105881f1c0b60ca9c788d52d41445bd653a9d190c8862a2b2b1386d5e37c