Navigation:  thinBasic Modules > UI (User Interface) > CONTROLs > Dedicated Control Functions > ImageList >

ImageList_New

Previous pageReturn to chapter overviewNext page

 

Description

 

Creates a new ImageList structure and return its handle.

 

Syntax

 

iList = ImageList_New(ICON | BITMAP, Width, Height, Depth [, InitialItems])

 

Returns

 

Number

The handle of the created ImageList, or zero if the operation failed.

 

Parameters

 

Name

Type

Optional

Meaning

ICON | BITMAP

Keyword

No

If you specify BITMAP, each image you add will be stored as a single bitmap.

If you specify ICON, each image you add will be stored as two bitmaps in order to support transparent areas.

Width

Number

No

Width of each image in pixels

Height

Number

No

Height of each image in pixels

Depth

Number

No

specifies the color depth in bits per pixel: 4,8,16,24,32

A depth of 4 offers 16 colors, 8 offers 256 colors, ...

InitialItems

Number

Yes

Specifies the initial size of the ImageList. ImageList can grow beyond this number.

If InitialItems is <= 0, 1 will be assumed

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com