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