Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Backends_LCL_Win🞂TLCLMemoryBackendClass

TLCLMemoryBackend

Heap memory backend for Lazarus LCL rendering directly to TCanvas controls without allocating GDI handles.

Inheritance:TObject 🞂 TPersistent 🞂 TPlainInterfacedPersistent 🞂 TNotifiablePersistent 🞂 TThreadPersistent 🞂 TCustomBackend 🞂 TMemoryBackend 🞂 TLCLMemoryBackend

Declaration ​

pascal
TLCLMemoryBackend = class(TMemoryBackend, IPaintSupport, IDeviceContextSupport)

Description ​

TLCLMemoryBackend combines heap memory pixel allocations (TMemoryBackend) with Lazarus LCL repainting support.

TLCLMemoryBackend does not allocate GDI bitmap section handles or memory device contexts. When repainting onto an LCL TCanvas, it outputs pixel data directly using SetDIBitsToDevice on Windows LCL targets.