AcManager.Pages.Dialogs.ImageEditor.CropModel.CenterAndFit C# (CSharp) Méthode

CenterAndFit() public méthode

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