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

TCustomImageList.AddLazarusResource

Loads a bitmap from a lazarus resources and adds it.

Declaration

Source position: imglist.pp line 168

public function TCustomImageList.AddLazarusResource(

  const ResourceName: string;

  MaskColor: TColor = clNone

):Integer;

Arguments

ResourceName

  

The name of the Lazarus resource.

MaskColor

  

The mask color for transparent images, clNone for solid (opaque) images.

Function result

Index of the first added image.