Draw a Bitmap image on the screen

后端 未结 4 1720
渐次进展
渐次进展 2021-01-13 15:40

Im trying to print (show in screen ) a screenshot on my main monitor , I think I’ve got all the necessary variables to make that happen but I have no clue how to get past

4条回答
  •  忘掉有多难
    2021-01-13 16:21

    The simplest way would be to use a Windows Forms PictureBox inside a Form.

    For example:

    Form form = new Form();
    form.Text = "Image Viewer";
    PictureBox pictureBox = new PictureBox();
    pictureBox.Image = YourImage;
    pictureBox.Dock = DockStyle.Fill;
    form.Controls.Add(pictureBox);
    Application.Run(form);
    

提交回复
热议问题