Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new empty list to contain images.
Syntax
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
Remarks
You can use the autoResize method to automatically resize images when you add them to the list.
Examples
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());