Link Search Menu Expand Document

ImageList Constructor

Explanation Initialize the ImageList object.

JPEG or PNG is effective as the image file format. Biz / Browser V or later also supports formats such as BMP, GIF, TIFF, and EXIF.
In addition to BMP and GIF formats, AI also supports transparent PNG formats.

The image file is automatically divided into the sizes specified in width and height, and each can be obtained as an individual image with the
GetImage method. Areas that do not meet the width and height values are filled in black.

Added since Ver.4.0.0
Call format var img = new ImageList( [ URL or reader [, width, height ] ] )
Return value None
Arguments URL or Reader Image file URL or ReaderObject
By default, it is an empty image list, and you need to call the LoadImage and LoadIcon methods to load the image.
integer width Image width
The range that can be specified is 16 to 1024, and the default is 16. The specified value is set in the IconWidth property.
integer height Image height
The range that can be specified is 16 to 1024, and the default is 16. The specified value is set in the IconHeight property.
Exception EXT-1 Invalid URL argument
EXT-4 The width of the image list exceeds 32767 dots
EXT-7 Invalid reference
EXT-11 Read method not found
Example of use
    var img = new ImageList("sample.png", 32, 32);
    ImageLabel1.SetImage(img.GetImage(0));
    
Related item IconWidth, IconHeight properties
GetImage, LoadImage, LoadIcon methods