public Picture(string filePath, float dpiX, float dpiY) { _bitmap = Bitmap.FromFile(filePath) as Bitmap; _bitmap.SetResolution(dpiX, dpiY); ScalingFactor = new SizeF(1F, 1F); Width = 100; Height = 100 * ((float)_bitmap.Height / _bitmap.Width); }