Sign in Join
FPDoc Onlineexperiment

CreateBitmapFromResourceName function

In unit Graphics

Creates a TCustomBitmap instance with the content for the named Lazarus resource.

Declaration

pascal
function CreateBitmapFromResourceName(Instance: TLCLHandle; 
 const ResName: string)
: TCustomBitmap

Description

Used in the implementation of components, and the LCL, to get a bitmap image stored in a Lazarus resource. Typically used to load button glyphs and icons displayed on the component palette in the Lazarus IDE.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.