Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Backends_VCL🞂TGDIMemoryBackendClass

TGDIMemoryBackend

A heap memory backend that renders directly to VCL TCanvas controls using SetDIBitsToDevice without allocating GDI handles.

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

Declaration ​

pascal
TGDIMemoryBackend = class(TMemoryBackend, IPaintSupport, IDeviceContextSupport)

Description ​

TGDIMemoryBackend combines pure heap memory allocation (TMemoryBackend) with VCL repainting support (IPaintSupport and IDeviceContextSupport).

Unlike TGDIBackend, TGDIMemoryBackend does not allocate GDI bitmap handles (HBITMAP) or memory device contexts (HDC). Instead, it uses SetDIBitsToDevice to blit raw heap pixel buffers directly onto destination TCanvas handles during paint operations.