C# Out of Memory when Creating Bitmap

前端 未结 6 1223
旧时难觅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条回答
  •  旧时难觅i
    2020-12-09 20:24

    you should check if curLocation.X is larger than 50, otherwise your rectangle will start in the negative area (and of course curLocation.Y)

提交回复
热议问题