SaveDC function gdi32

int SaveDC(
  1. HDC hdc
)

Saves the current state of the specified device context (DC) by copying data describing selected objects and graphic modes (such as the bitmap, brush, palette, font, pen, region, drawing mode, and mapping mode) to a context stack.

To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-savedc.

Implementation

@pragma('vm:prefer-inline')
int SaveDC(HDC hdc) => _SaveDC(hdc);