private static GraphicsPath CreateClipBorderPath(Rectangle rect, Rectangle exclude, float cut) { // Clipping happens inside the rect, so make 1 wider and taller rect.Width++; rect.Height++; // Now create a path based on this inner rectangle return CreateBorderPath(rect, exclude, cut); }