Draw a Bitmap image on the screen

后端 未结 4 1676
渐次进展
渐次进展 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 15:59

    make it simple just.

        //Draw Image
    
        // location of you image
        Bitmap img = Properties.Resources.myImage;
    
        // set image 
        Image newImg = img;
    
        // draw a image
        e.Graphics.DrawImage(newImg, 180F, 18F, newImg.Width, newImg.Height);
    

提交回复
热议问题