internal static extern bool DeleteObject(IntPtr hObject);
/// <summary> /// Destroys this instance. /// </summary> public virtual void DestroyBitmap() { // Destroy the bitmap. if (this.HBitmap != IntPtr.Zero) { Win32.DeleteObject(this.HBitmap); this.HBitmap = IntPtr.Zero; } }