CrossStitchCreator.ImagingTool.FitToControl C# (CSharp) Method

FitToControl() public method

public FitToControl ( System ctrl ) : Bitmap
ctrl System
return System.Drawing.Bitmap
        public Bitmap FitToControl(System.Windows.Forms.Control ctrl)
        {
            return FitToControl(ctrl, InterpolationMode.Invalid);
        }

Same methods

ImagingTool::FitToControl ( System ctrl, InterpolationMode iMode ) : Bitmap

Usage Example

Ejemplo 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;
        }
All Usage Examples Of CrossStitchCreator.ImagingTool::FitToControl