Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Backends_Generic🞂TMemoryBackendClass

TMemoryBackend

A lightweight surface backend that keeps 32-bit pixel buffers entirely in RAM memory.

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

Declaration ​

pascal
TMemoryBackend = class(TCustomBackend)

Description ​

TMemoryBackend is a cross-platform backend implementation that stores raw 32-bit pixel data directly in system heap memory without allocating operating system GUI device contexts or window handles.

TMemoryBackend inherits from TCustomBackend and overrides InitializeSurface and FinalizeSurface to manage memory buffers using standard GetMem and FreeMem calls.

It is ideal for headless image processing, server applications, off-screen rendering, or background threads where GDI/GUI window handles are unavailable or unnecessary.