Method DeleteDC
DeleteDC(nint)
Deletes the specified device context (DC).
public static extern bool DeleteDC(nint hdc)
Parameters
hdcnintA handle to the device context to be deleted.
Returns
Remarks
This method is a wrapper for the native DeleteDC function in the GDI
library. It should be used to release a device context that was created
using functions such as
CreateCompatibleDC. Failure to delete a device context may result
in resource leaks.