public void initImage() { pictureBox.Image = report.SpeedPreview(CurPage); pictureBox.Dock = DockStyle.None; pictureBox.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox.Size = imageZoom.GetZoomSize(); SetMemoInfo(imageZoom.ZoomRate); SetPictureBoxLocation(pictureBox.Size, panel1); this.pictureBox.Cursor = CursorsEx.Hand; }
private void Repaint() { ReportMode.Image = curReport.SpeedPreview(1); if (ReportMode.Image != null) { ReportMode.Cursor = Cursors.Arrow; ReportMode.Dock = DockStyle.None; ReportMode.Size = ReportMode.Image.Size; ReportMode.SizeMode = PictureBoxSizeMode.StretchImage; resizePicture(); } }
private void Repaint(Report report) { ReportMode.Image = report.SpeedPreview(1); if (ReportMode.Image != null) { ReportMode.Dock = DockStyle.None; ReportMode.Size = new System.Drawing.Size(this.Width, this.Height); ReportMode.Cursor = Cursors.Arrow; //ReportMode.Size = ReportMode.Image.Size; ReportMode.SizeMode = PictureBoxSizeMode.StretchImage; } }