コード例 #1
0
 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;
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
        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;
            }
        }