Skip to main content

TcxCustomImageList.GetResource(TResType,string,Integer,TLoadResources,TColor) Method

Adds an image from a resource.

Declaration

function GetResource(AResType: TResType; const AName: string; AWidth: Integer; ALoadFlags: TLoadResources; AMaskColor: TColor): Boolean;

Parameters

Name Type Description
AResType TResType

The resource type.

AName string

The resource name.

AWidth Integer

The width of new images, in pixels.

ALoadFlags TLoadResources

Stores image load settings.

AMaskColor TColor

The transparency mask color.

Returns

Type Description
Boolean

True if image load and add operations are successful; otherwise, False.

See Also