19 references to Add
System.Drawing (19)
commonui\System\Drawing\Advanced\Gdiplus.cs (7)
3927
return System.Internal.HandleCollector.
Add
(IntCreateCompatibleBitmap(hDC, width, height), SafeNativeMethods.CommonHandles.GDI);
3939
return System.Internal.HandleCollector.
Add
(IntCreateBitmap(width, height, planes, bpp, bitmapData), SafeNativeMethods.CommonHandles.GDI);
3984
return System.Internal.HandleCollector.
Add
(IntCreateDIBSection(hdc, ref bmi, iUsage, ref ppvBits, hSection, dwOffset), SafeNativeMethods.CommonHandles.GDI);
4062
return System.Internal.HandleCollector.
Add
(IntCreateRectRgn(x1, y1, x2, y2), SafeNativeMethods.CommonHandles.GDI);
4813
return System.Internal.HandleCollector.
Add
(IntCreateIconFromResourceEx(pbIconBits, cbIconBits, fIcon, dwVersion, csDesired, cyDesired, flags), SafeNativeMethods.CommonHandles.Icon);
4823
return System.Internal.HandleCollector.
Add
(IntExtractAssociatedIcon(hInst, iconPath, ref index), SafeNativeMethods.CommonHandles.Icon);
4867
return System.Internal.HandleCollector.
Add
(IntCopyImage(hImage, uType, cxDesired, cyDesired, fuFlags), handleType);
commonui\System\Drawing\UnsafeNativeMethods.cs (2)
35
return System.Internal.HandleCollector.
Add
(IntGetDC(hWnd), SafeNativeMethods.CommonHandles.HDC);
98
return System.Internal.HandleCollector.
Add
(IntCreateCompatibleDC(hDC), SafeNativeMethods.CommonHandles.GDI);
misc\GDI\SafeNativeMethods.cs (4)
65
IntPtr hBrush = System.Internal.HandleCollector.
Add
(IntCreateSolidBrush(crColor), IntSafeNativeMethods.CommonHandles.GDI);
79
IntPtr hPen = System.Internal.HandleCollector.
Add
(IntCreatePen(fnStyle, nWidth, crColor), IntSafeNativeMethods.CommonHandles.GDI);
91
IntPtr hPen = System.Internal.HandleCollector.
Add
(IntExtCreatePen(fnStyle, dwWidth, lplb, dwStyleCount, lpStyle), IntSafeNativeMethods.CommonHandles.GDI);
105
IntPtr hRgn = System.Internal.HandleCollector.
Add
(IntCreateRectRgn(x1, y1, x2, y2), IntSafeNativeMethods.CommonHandles.GDI);
misc\GDI\UnsafeNativeMethods.cs (5)
43
IntPtr hdc = System.Internal.HandleCollector.
Add
(IntGetDC(hWnd), IntSafeNativeMethods.CommonHandles.HDC);
86
IntPtr hdc = System.Internal.HandleCollector.
Add
(IntCreateDC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData), IntSafeNativeMethods.CommonHandles.HDC);
100
IntPtr hdc = System.Internal.HandleCollector.
Add
(IntCreateIC(lpszDriverName, lpszDeviceName, lpszOutput, lpInitData), IntSafeNativeMethods.CommonHandles.HDC);
116
IntPtr compatibleDc = System.Internal.HandleCollector.
Add
(IntCreateCompatibleDC(hDC), IntSafeNativeMethods.CommonHandles.GDI);
242
IntPtr hFont = System.Internal.HandleCollector.
Add
(IntCreateFontIndirect(lf), IntSafeNativeMethods.CommonHandles.GDI);
misc\GDI\WindowsRegion.cs (1)
83
System.Internal.HandleCollector.
Add
(hRegion, IntSafeNativeMethods.CommonHandles.GDI);