FitToControl() public method

public FitToControl ( System ctrl ) : Bitmap
ctrl System
return System.Drawing.Bitmap
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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;
        }