FitToControl() public méthode

public FitToControl ( System ctrl ) : Bitmap
ctrl System
Résultat System.Drawing.Bitmap
Exemple #1
0
        private void RedrawTab1Images()
        {
            this.Cursor = Cursors.WaitCursor;
            if (mInputImage != null)
            {
                ImagingTool tool1 = new ImagingTool(mInputImage);
                pictureBoxOriginal.Image = tool1.FitToControl(pictureBoxOriginal);
            }
            else
            {
                pictureBoxOriginal.Image = null;
            }
            if (mResizedImage != null)
            {
                ImagingTool tool2 = new ImagingTool(mResizedImage);
                pictureBoxResized.Image = tool2.FitToControl(pictureBoxOriginal);
            }
            else
            {
                pictureBoxResized.Image = null;
            }

            updateFormFromSettings();
            this.Cursor = Cursors.Default;
        }
Exemple #2
0
 private void RedrawTab3Images()
 {
     this.Cursor = Cursors.WaitCursor;
     if (mRecolouredImage != null)
     {
         ImagingTool tool1 = new ImagingTool(mRecolouredImage);
         pictureBoxRecoloured2.Image = tool1.FitToControl(pictureBoxRecoloured2);
     }
     else
     {
         pictureBoxRecoloured2.Image = null;
     }
     if (mPatternImage != null)
     {
         ImagingTool tool2 = new ImagingTool(mPatternImage);
         pictureBoxPattern.Image = tool2.FitToControl(pictureBoxPattern);
     }
     else
     {
         pictureBoxPattern.Image = null;
     }
     updateFormFromSettings();
     this.Cursor = Cursors.Default;
 }
 private void RedrawTab3Images()
 {
     this.Cursor = Cursors.WaitCursor;
     if (mRecolouredImage != null)
     {
         ImagingTool tool1 = new ImagingTool(mRecolouredImage);
         pictureBoxRecoloured2.Image = tool1.FitToControl(pictureBoxRecoloured2);
     }
     else
     {
         pictureBoxRecoloured2.Image = null;
     }
     if (mPatternImage != null)
     {
         ImagingTool tool2 = new ImagingTool(mPatternImage);
         pictureBoxPattern.Image = tool2.FitToControl(pictureBoxPattern);
     }
     else
     {
         pictureBoxPattern.Image = null;
     }
     updateFormFromSettings();
     this.Cursor = Cursors.Default;
 }
        private void RedrawTab1Images()
        {
            this.Cursor = Cursors.WaitCursor;
            if (mInputImage != null)
            {
                ImagingTool tool1 = new ImagingTool(mInputImage);
                pictureBoxOriginal.Image = tool1.FitToControl(pictureBoxOriginal);
            }
            else
            {
                pictureBoxOriginal.Image = null;
            }
            if (mResizedImage != null)
            {
                ImagingTool tool2 = new ImagingTool(mResizedImage);
                pictureBoxResized.Image = tool2.FitToControl(pictureBoxOriginal);
            }
            else
            {
                pictureBoxResized.Image = null;
            }

            updateFormFromSettings();
            this.Cursor = Cursors.Default;
        }