首页 新闻 会员 周边

A generic error occurred in GDI+

0
悬赏园豆:50 [已解决问题] 解决于 2020-09-23 10:14

Bitmap image=new Bitmap((int)Math.Ceiling(checkCode.length*15.0)),25);
执行到这句话时报错

金卧古梁的主页 金卧古梁 | 初学一级 | 园豆:7
提问于:2020-08-24 13:53
< >
分享
最佳答案
0

GDI+ limits the maximum height of an image to 65500,图片宽高限制一下
参考 https://stackoverflow.com/questions/1053052/a-generic-error-occurred-in-gdi-jpeg-image-to-memorystream?r=SearchResults

收获园豆:50
flyfishing | 小虾三级 |园豆:943 | 2020-08-24 14:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册