Skip to content
GR32>TCustomBitmap32>GetPlatformBackendClassMethodProtected

TCustomBitmap32.GetPlatformBackendClass

Returns the backend class used to instantiate the default backend interface.

Declaration

pascal
class function GetPlatformBackendClass: TCustomBackendClass; virtual;

GetPlatformBackendClass is a protected class method that returns the TCustomBackend derived class to use when the constructor doesn't explicitly specify one.

By default GetPlatformBackendClass returns TMemoryBackend, but derived classes can can override GetPlatformBackendClass to return something else. For example, TBitmap32, overrides GetPlatformBackendClass to return a suitable platform specific backend class, such as TGDIBackend on Delphi/Windows or TLCLBackend on LCL/FPC.

See also: TBitmap32.GetPlatformBackendClass ​