Imagelist.new Method [AX 2012]

Creates a new empty list to contain images.

public void new(
    int cx, 
    int cy, 
   [boolean transparent])

Run On

Client

Parameters

cx
Type: int
The width, in pixels, for the images in the list.
cy
Type: int
The height, in pixels, for the images in the list.
transparent
Type: boolean

You can use the autoResize method to automatically resize images when you add them to the list.

The following example creates an image list to hold items of the standard icon width and height.

Imagelist list; 
  
list = new Imagelist( 
   Imagelist::iconWidth(), 
   Imagelist::iconHeight());

Community Additions

ADD
Show: