Share via


Imagelist.new Method

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.

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());

See Also

Reference

Imagelist Class