Bubbles3/Controls/BblImageSurface.cs
/// <summary>
/// Set the scale matrix so the image is the same width as the client
/// </summary>
Set the scale matrix so the image is the same width as the client
Set the scale matrix so the image is the same width as the client
public void FitW()
        {
            float xratio = (float)ClientSize.Width / (float)ImgSize.Width;
            _scale = Matrix3x2.Scaling(xratio, xratio, ImgCenter);
            UpdateRenderParams();
        }
public void FitW ( ) { float xratio = ( float ) ClientSize . Width / ( float ) ImgSize . Width ; _scale = Matrix3x2 . Scaling ( xratio , xratio , ImgCenter ) ; UpdateRenderParams ( ) ; }
Set the scale matrix so the image is the same width as the client
Set the scale matrix so the image is the same width as the client