1 instantiation of PenCache
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
24
private static PenCache PenCache => s_penCache ??=
new
(softLimit: 30, hardLimit: 40);
7 references to PenCache
System.Windows.Forms.Primitives (7)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (7)
17
private static
PenCache
? s_penCache;
24
private static
PenCache
PenCache => s_penCache ??= new(softLimit: 30, hardLimit: 40);
27
private static
PenCache
.Scope GetPenScope(Color color)
37
return new
PenCache
.Scope(pen);
73
internal static
PenCache
.Scope GetCachedPenScope(this Color color) => GetPenScope(color);
76
internal static
PenCache
.Scope GetCachedPenScope(this Color color, int width)
77
=> width == 1 ? GetPenScope(color) : new
PenCache
.Scope(new Pen(color, width));