[Overview][Types][Classes][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.CreateSize

Initialize the list for image(s) with the given height and width.

Declaration

Source position: imglist.pp line 157

public constructor TCustomImageList.CreateSize(

  AWidth: Integer;

  AHeight: Integer

);

Arguments

AWidth

  

The width of all images, in pixels.

AHeight

  

The height of all images, in pixels.

Description

This constructor overrides the default initial size of the images (16x16 pixels).

The Width and Height is reset with every insertion of a bitmap. It may be useful, however, to initialize a list for the insertion of graphics other than bitmaps, so that the images can be rendered as bitmaps of the intended width and height, before they are inserted.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.