15 references to Convert
System.Drawing.Common (14)
System\Drawing\Printing\PageSettings.cs (4)
258
int length = PrinterUnitConvert.
Convert
(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
265
int width = PrinterUnitConvert.
Convert
(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
275
int length = PrinterUnitConvert.
Convert
(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
282
int width = PrinterUnitConvert.
Convert
(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
System\Drawing\Printing\PrinterSettings.cs (2)
887
PrinterUnitConvert.
Convert
(sizes[i].Width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display),
888
PrinterUnitConvert.
Convert
(sizes[i].Height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System\Drawing\Printing\PrinterUnitConvert.cs (8)
35
new(
Convert
(value.X, fromUnit, toUnit),
Convert
(value.Y, fromUnit, toUnit));
41
new(
Convert
(value.Width, fromUnit, toUnit),
Convert
(value.Height, fromUnit, toUnit));
47
Convert
(value.X, fromUnit, toUnit),
48
Convert
(value.Y, fromUnit, toUnit),
49
Convert
(value.Width, fromUnit, toUnit),
50
Convert
(value.Height, fromUnit, toUnit));
System.Drawing.Common.Tests (1)
System\Drawing\Printing\PrinterUnitConvertTests.cs (1)
53
int converted = PrinterUnitConvert.
Convert
(100, fromUnit, toUnit);