private void Initialise() { #if DEBUG this.debugForm = new CorrelationDebugForm(); this.debugForm.BackgroundImageView.ZoomToFit = true; this.debugForm.TileImageView.ZoomToFit = true; this.debugForm.Show(); #endif this.mosaicWindow.MosaicLoaded += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded); this.tiledImageViewer.TileImageViewMouseDownHandler += new TileImageViewMouseDelegate <TiledImageView, TiledImageViewMouseEventArgs>(OnTileImageViewMouseDownHandler); this.mosaicWindow.UsingCorrelationsChanged += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnUsingCorrelationsChanged); this.useCorrelationCheckBox.Checked = MosaicWindow.MosaicInfo.IsCorrelated; this.tiledImageViewer.Initialise(MosaicWindow.MosaicInfo, new Rectangle(0, 0, MosaicWindow.MosaicInfo.TotalWidth, MosaicWindow.MosaicInfo.TotalHeight), new Size(1000, 1000), true); // forcing the tiledimageviewer to be grayscale here this.tiledImageViewer.Paint += new PaintEventHandler(OnImageViewPaint); #if DEBUG this.debugForm.BackgroundImageView.Paint += new PaintEventHandler(OnDebugBackgroundImageViewPaint); this.debugForm.TileImageView.Paint += new PaintEventHandler(OnDebugTileImageImageViewPaint); #endif this.correlationTypeComboBox.SelectedIndex = 1; SetCorrelationForCombobox(); }
public override void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e) { e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 255, 0, 255)), this.backgroundIntersectArea); e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelAreaWithinBackground); //e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 255, 255, 255)), this.searchPos); e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 0, 255, 0)), this.searchArea); }
public virtual void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e) { }
public virtual void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e) { }
public override void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e) { e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelArea); }
private void Initialise() { #if DEBUG this.debugForm = new CorrelationDebugForm(); this.debugForm.BackgroundImageView.ZoomToFit = true; this.debugForm.TileImageView.ZoomToFit = true; this.debugForm.Show(); #endif this.mosaicWindow.MosaicLoaded += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded); this.tiledImageViewer.TileImageViewMouseDownHandler += new TileImageViewMouseDelegate<TiledImageView, TiledImageViewMouseEventArgs>(OnTileImageViewMouseDownHandler); this.mosaicWindow.UsingCorrelationsChanged += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnUsingCorrelationsChanged); this.useCorrelationCheckBox.Checked = MosaicWindow.MosaicInfo.IsCorrelated; this.tiledImageViewer.Initialise(MosaicWindow.MosaicInfo, new Rectangle(0, 0, MosaicWindow.MosaicInfo.TotalWidth, MosaicWindow.MosaicInfo.TotalHeight), new Size(1000, 1000), true); // forcing the tiledimageviewer to be grayscale here this.tiledImageViewer.Paint += new PaintEventHandler(OnImageViewPaint); #if DEBUG this.debugForm.BackgroundImageView.Paint += new PaintEventHandler(OnDebugBackgroundImageViewPaint); this.debugForm.TileImageView.Paint += new PaintEventHandler(OnDebugTileImageImageViewPaint); #endif this.correlationTypeComboBox.SelectedIndex = 1; SetCorrelationForCombobox(); }