API Documentation > CorelDRAW > 2025-v26 > ImageList > ICUIImageList
ImageList.AddImage method
Adds an image to the image list. The image data can be a file name, raw image data as a byte-array, or a image data stream
Syntax:
Function AddImage(ByVal Key As String, ByVal ImageData As Variant, Optional ByVal MaxSize As Long = 0) As Boolean
Parameters:
Name Type Description
Key
String
ImageData
Variant
MaxSize
Long
Specifies the maximum width or height of images. Images that exceed the maximum width or height are shrunk. A value of 0 specifies that there is no restriction for the height and width of an image.
Remarks:
The AddImage method adds an image to the image list. The image list can be a file name, raw image data as a byte-array, or an image data stream.