mtInertia.Picture.Picture C# (CSharp) Method

Picture() public method

public Picture ( string filePath, float dpiX, float dpiY ) : System
filePath string
dpiX float
dpiY float
return System
        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);
        }