---
title: "GetAttachmentImage"
canonical: "https://docs.dk.is/space/DEV/10354903/GetAttachmentImage"
format: markdown
---
This function is used to retrieve an image that will be scaled to the proportion supplied to the function

## Parameters

Used to call the function

1. ImageID - integer
2. MaxWidth - integer
3. MaxHeight - integer
4. format - [TImageFormat](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10356743)

## Returns

Returns the following

- [A](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10354857)rray of Byte

 

 

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |