public FitToControl ( System ctrl ) : |
||
ctrl | System | |
Résultat |
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; }
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; }