Skip to main content

TcxCustomImageList.FileLoad(TResType,string,TColor) Method

Loads an image from the specified resource file.

Declaration

function FileLoad(AResType: TResType; const AName: string; AMaskColor: TColor): Boolean;

Parameters

Name Type Description
AResType TResType

A resource type.

AName string

A resource filename.

AMaskColor TColor

A transparency mask color.

Returns

Type Description
Boolean

True if the function successfully loads and appends one or more images to the image list; otherwise, False.

Remarks

This function divides the loaded image into multiple images or truncates it to match the list’s dimensions as the Add function does.

Note

The mask associated with the appended bitmap is ignored if the Masked property is set to False.

The FileLoad and ResourceLoad functions are designed to load images from individual resource files. To load images from packaged resources, invoke the GetInstRes, LoadImage, or ResInstLoad function instead.

See Also