Bitmap while assigning height width crashes

前端 未结 4 1834
北荒
北荒 2020-12-07 04:59
Dim objBmpImage AS Bitmap = New Bitmap(9450, 6750)

On execution of above line of code application crashes - Argument Exception- Parameter is not va

4条回答
  •  旧巷少年郎
    2020-12-07 05:42

    Dim objBmpImage AS Bitmap = New Bitmap(objYourOriginBmpImage, New Size(9450, 6750))
    

    You are using the name objBmpImage thrice and in the wrong context.

提交回复
热议问题