AODL.Document.Helper.SizeConverter.GetWidthInPixel C# (CSharp) Method

GetWidthInPixel() public static method

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.
return 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));
		}