DeleteObject function Null safety gdi32

int DeleteObject (
  1. int ho
)

The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.

BOOL DeleteObject(
  HGDIOBJ ho
);

Implementation

int DeleteObject(int ho) {
  final _DeleteObject =
      _gdi32.lookupFunction<Int32 Function(IntPtr ho), int Function(int ho)>(
          'DeleteObject');
  return _DeleteObject(ho);
}