Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Backends🞂IDeviceContextSupportInterface

IDeviceContextSupport

Interface for backends providing native OS device context handles (HDC) and bit-blitting operations.

Declaration ​

pascal
IDeviceContextSupport = interface(IUnknown)

Description ​

IDeviceContextSupport provides access to native OS GDI/LCL device context handles (HDC) and blitting/drawing routines.

Properties ​

PropertyTypeAccessDescription
HandleHDCRead-onlyNative OS GDI device context handle associated with the surface buffer.

Methods ​

Draw ​

pascal
procedure Draw(const DstRect, SrcRect: TRect; hSrc: HDC);

Blits/stretches pixel content from external device context hSrc onto the backend surface.

DrawTo ​

pascal
procedure DrawTo(hDst: HDC; DstX, DstY: Integer); overload;
procedure DrawTo(hDst: HDC; const DstRect, SrcRect: TRect); overload;

Blits/stretches backend surface pixels onto an external target device context hDst.