---
title: "Codeunit 3010 DotNet_Image"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/3010-dotnet-image/
type: codeunit
id: 3010
name: "DotNet_Image"
app: "Base Application"
versions: "17-21"
build: 21.5.53619.63803
obsolete: "Pending 19.0"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 3010 DotNet_Image

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/3010-dotnet-image/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-21 |
| Obsolete | Pending 19.0, seen from 19. This codeunit is obsolete. Use the Image codeunit in the Image Module instead. |
| Source file | DotNet Wrappers/DotNetImage.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| FromStream | (InStream) | - | public | 17-21 | - | - |
| RawFormat | (var Codeunit DotNet_ImageFormat) | - | public | 17-21 | Pending 19.0 | Provide format in Save() function instead |
| FromBitmap | (Integer, Integer) | - | public | 17-21 | - | - |
| Save | (var OutStream, Codeunit DotNet_ImageFormat) | - | public | 17-21 | Pending 19.0 | Codeunit has been replaced by enum in the Image module |
| GetWidth | () | Integer | public | 17-21 | - | - |
| GetHeight | () | Integer | public | 17-21 | - | - |
| Dispose | () | - | public | 17-21 | Pending 19.0 | Removed as we do not need to handle memory allocation in the new module. |
| GetImage | (var DotNet Image) | - | public | 17-21 | Pending 19.0 | Removed as we only support streams |
| SetImage | (DotNet Image) | - | public | 17-21 | Pending 19.0 | Removed as we only support streams |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.

Jonas Paprotka, 2026-09-20.
