ImageList Class

 

About ImageList Class

 

ImageList class is mainly used for loading and managing image lists.

 

ImageList Class Methods

 

ImageList.Add( long Width, long Height) Adds a new image list. If the function succeeds, the return value is the handle of the newly loaded resource. If the function fails, the return value is 0.

long Width: the width, in pixels, of each image.
long Height: the height, in pixels, of each image.

 

ImageList.AddBitmap( long ImageListHandle, long BitmapHandle) adds a bitmap to an image list. This method returns the index of the new image if successful, or -1 otherwise.

long ImageListHandle: image list handle.
long BitmapHandle: bitmap handle.

 

ImageList.AddCursor( long ImageListHandle, long CursorHandle) adds a cursor to an image list. This method returns the index of the new image if successful, or -1 otherwise.

long ImageListHandle: image list handle.
long CursorHandle: cursor handle.

 

ImageList.AddIcon( long ImageListHandle, long IconHandle) adds an icon to an image list. This method returns the index of the new image if successful, or -1 otherwise.

long ImageListHandle: image list handle.
long IconHandle: icon handle.

 

ImageList.GetImageCount( long ImageListHandle) returns the number of images in an image list.

long ImageListHandle: image list handle.

 

ImageList.DeleteImage( long ImageListHandle, long ImageIndex) removes an image from an image list. This method returns true if successful, or false otherwise.

long ImageListHandle: image list handle.
long ImageIndex: zero-based index of the image. If this parameter is -1, the function removes all images.

 

ImageList.Delete( long ImageListHandle ) Deletes an image list and frees any memory the image list occupied. If the function succeeds, the return value is true. If the function fails, the return value is false.

long ImageListHandle: image list handle.

 

I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

Comments are closed.