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

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

Cacluates the width in cm from width in pixel by using the horizontal resolution.
public static GetWidthInCm ( int widthPixel, int dpiX ) : double
widthPixel int The width.
dpiX int The dpi X.
Результат double
		public static double GetWidthInCm(int widthPixel, int dpiX)
		{
			// px / dpi = inch ( for height and width )
			return ((double)((double)widthPixel / (double)dpiX) * intocm);
		}