AcManager.Pages.Dialogs.ImageEditor.CropModel.CenterAndFit C# (CSharp) Method

CenterAndFit() public method

public CenterAndFit ( ) : void
return void
            public void CenterAndFit() {
                ImageWidth = MaxWidth;
                ImageHeight = MaxHeight;
                OffsetX = (TotalWidth - ImageWidth) / 2;
                OffsetY = (TotalHeight - ImageHeight) / 2;
            }