54 references to GetDeviceCaps
System.Drawing.Common (31)
misc\DpiHelper.cs (2)
35
s_deviceDpiX = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
36
s_deviceDpiY = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Drawing\Icon.cs (2)
434
s_bitDepth = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
435
s_bitDepth *= PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PLANES);
System\Drawing\Printing\DefaultPrintController.cs (4)
94
int dpiX = PInvokeCore.
GetDeviceCaps
(_hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
95
int dpiY = PInvokeCore.
GetDeviceCaps
(_hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
96
int hardMarginX_DU = PInvokeCore.
GetDeviceCaps
(_hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX);
97
int hardMarginY_DU = PInvokeCore.
GetDeviceCaps
(_hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System\Drawing\Printing\PageSettings.cs (14)
70
int dpiX = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
71
int hardMarginX_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX);
85
int dpiY = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
86
int hardMarginY_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
155
int dpiX = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
156
int dpiY = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
160
printableArea.X = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX;
161
printableArea.Y = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY;
162
printableArea.Width = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.HORZRES) * 100 / dpiX;
163
printableArea.Height = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.VERTRES) * 100 / dpiY;
168
printableArea.Y = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX) * 100 / dpiX;
169
printableArea.X = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY) * 100 / dpiY;
170
printableArea.Height = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.HORZRES) * 100 / dpiX;
171
printableArea.Width = (float)PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.VERTRES) * 100 / dpiY;
System\Drawing\Printing\PreviewPrintController.cs (4)
80
int dpiX = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
81
int dpiY = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
82
int hardMarginX_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX);
83
int hardMarginY_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System\Drawing\Printing\PrinterSettings.cs (1)
590
return PInvokeCore.
GetDeviceCaps
(hdc, capability);
System\Drawing\Printing\PrintPreviewGraphics.cs (4)
38
int dpiX = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
39
int dpiY = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
40
int hardMarginX_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETX);
41
int hardMarginY_DU = PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.PHYSICALOFFSETY);
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
22
if (PInvokeCore.
GetDeviceCaps
(hdc.Handle, GET_DEVICE_CAPS_INDEX.BITSPIXEL) > 8)
System.Windows.Forms (16)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1067
s_logPixelsX = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
1068
s_logPixelsY = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
283
s_logPixels.X = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
284
s_logPixels.Y = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
42
int planes = PInvokeCore.
GetDeviceCaps
(HDC, GET_DEVICE_CAPS_INDEX.PLANES);
43
int bitsPixel = PInvokeCore.
GetDeviceCaps
(HDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1704
int planes = PInvokeCore.
GetDeviceCaps
(compatibleDC, GET_DEVICE_CAPS_INDEX.PLANES);
1705
int bitsPixel = PInvokeCore.
GetDeviceCaps
(compatibleDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2765
s_logPixelsX = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
2766
s_logPixelsY = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (2)
69
s_logPixelsX = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
84
s_logPixelsY = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
478
PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX),
479
PInvokeCore.
GetDeviceCaps
(hdc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY));
System\Windows\Forms\Screen.cs (2)
88
_bitDepth = PInvokeCore.
GetDeviceCaps
(screenDC, GET_DEVICE_CAPS_INDEX.BITSPIXEL);
89
_bitDepth *= PInvokeCore.
GetDeviceCaps
(screenDC, GET_DEVICE_CAPS_INDEX.PLANES);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
888
int lpy = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
System\Windows\Forms\Internals\ScaleHelper.cs (1)
67
return PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
System.Windows.Forms.Primitives.TestUtilities (2)
GdiHelper.cs (2)
14
LogicalPixelsX = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
15
LogicalPixelsY = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);
WinFormsControlsTest (2)
ScalingBeforeChanges.cs (2)
39
x = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSX);
40
y = PInvokeCore.
GetDeviceCaps
(dc, GET_DEVICE_CAPS_INDEX.LOGPIXELSY);