CreatePenScope struct CreatePenScope Helper to scope the lifetime of a HPEN. Documentation Code public HPEN HPEN { get; } public bool IsNull { get; } public CreatePenScope(Color color, int width = 1) Creates a solid pen based on the color and width using CreatePen. public static HPEN op_Implicit(ref CreatePenScope scope) public static HGDIOBJ op_Implicit(ref CreatePenScope scope) public void Dispose()