private BrushHolder(BrushHandle handle) { _brush = handle.HBRUSH; _shouldDispose = handle.OwnsHandle; if (!_shouldDispose) { GC.SuppressFinalize(this); } }
public static extern bool FrameRgn( DeviceContext hdc, RegionHandle hrgn, BrushHandle hbr, int nWidth, int nHeight);
public static extern bool FillRgn( DeviceContext hdc, RegionHandle hrgn, BrushHandle hbr);
public static extern bool FrameRect( DeviceContext hDC, [In] ref RECT lprc, BrushHandle hbr);
public bool Equals(BrushHandle other) => other.HBRUSH == HBRUSH;
public static bool FrameRectangle(DeviceContext deviceContext, RECT rectangle, BrushHandle brush) { return(Imports.FrameRect(deviceContext, ref rectangle, brush)); }