Exemplo n.º 1
0
        private async void InitializeImageScale(object sender, EventArgs e)
        {
            if (CurrentImageContainer != null)
            {
                CustomScaleComboBox.SelectedItem = null;
                SetZoom(_painter.CalculateDefaultScale(CreateDrawRequest()));
                await DrawImage();

                MainPictureBox.BackgroundImage = CurrentImageContainer.BmpRaw;
            }
        }