C# Out of Memory when Creating Bitmap

前端 未结 6 1227
旧时难觅i
旧时难觅i 2020-12-09 19:41

I\'m creating an application (Windows Form) that allows the user to take a screenshot based on the locations they choose (drag to select area). I wanted to add a little \"pr

6条回答
  •  没有蜡笔的小新
    2020-12-09 20:35

    If the zoom box goes off the edge of the desktop area, then when you try to crop, you are asking the system to make a new image that includes pixels outside of the video memory area. Make sure to limit your zoom box so that none of its extents is less than 0 or greater than the screen edges.

提交回复
热议问题