AODL.Document.Helper.SizeConverter.GetWidthInPixel C# (CSharp) Метод

GetWidthInPixel() публичный статический Метод

Cacluates the width in pixel from width in cm or inch by using the horizontal resolution.
public static GetWidthInPixel ( int width, int dpiX, bool cm ) : double
width int The width.
dpiX int The dpi X.
cm bool if set to true in cm otherwise inch.
Результат double
		public static double GetWidthInPixel(int width, int dpiX, bool cm)
		{
			double widthD = 0.0;
			if (cm)
				widthD = width / intocm;
			return ((double)((double)dpiX * widthD));
		}