30 references to GetDeviceCaps
System.Drawing (30)
commonui\System\Drawing\Icon.cs (2)
629
bitDepth = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, dc), SafeNativeMethods.BITSPIXEL);
630
bitDepth *= UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, dc), SafeNativeMethods.PLANES);
commonui\System\Drawing\Printing\DefaultPrintController.cs (4)
125
int dpiX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(this.dc, dc.Hdc), SafeNativeMethods.LOGPIXELSX);
126
int dpiY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(this.dc, dc.Hdc), SafeNativeMethods.LOGPIXELSY);
127
int hardMarginX_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(this.dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETX);
128
int hardMarginY_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(this.dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETY);
commonui\System\Drawing\Printing\PageSettings.cs (14)
113
int dpiX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSX);
114
int hardMarginX_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETX);
143
int dpiY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSY);
144
int hardMarginY_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETY);
242
int dpiX = UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.LOGPIXELSX);
243
int dpiY = UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.LOGPIXELSY);
247
printableArea.X = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.PHYSICALOFFSETX) * 100 / dpiX;
248
printableArea.Y = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.PHYSICALOFFSETY) * 100 / dpiY;
249
printableArea.Width = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.HORZRES) * 100 / dpiX;
250
printableArea.Height = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.VERTRES) * 100 / dpiY;
255
printableArea.Y = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.PHYSICALOFFSETX) * 100 / dpiX;
256
printableArea.X = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.PHYSICALOFFSETY) * 100 / dpiY;
257
printableArea.Height = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.HORZRES) * 100 / dpiX;
258
printableArea.Width = (float)UnsafeNativeMethods.
GetDeviceCaps
(hdc, SafeNativeMethods.VERTRES) * 100 / dpiY;
commonui\System\Drawing\Printing\PreviewPrintController.cs (4)
134
int dpiX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSX);
135
int dpiY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSY);
136
int hardMarginX_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETX);
137
int hardMarginY_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETY);
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
967
result = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), capability);
commonui\System\Drawing\Printing\PrintPreviewGraphics.cs (4)
55
int dpiX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSX);
56
int dpiY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.LOGPIXELSY);
57
int hardMarginX_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETX);
58
int hardMarginY_DU = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(dc, dc.Hdc), SafeNativeMethods.PHYSICALOFFSETY);
misc\DpiHelper.cs (1)
111
deviceDpi = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), CAPS.LOGPIXELSX);