社区
C#
帖子详情
Bitmap bt=new Bitmap(stream),使用了无效的参数,why?
cgsun
2004-04-01 09:04:26
Bitmap bt=new Bitmap(stream),使用了无效的参数,why?
...全文
281
9
打赏
收藏
Bitmap bt=new Bitmap(stream),使用了无效的参数,why?
Bitmap bt=new Bitmap(stream),使用了无效的参数,why?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
supermac
2004-05-10
打赏
举报
回复
改为
pictureBox1.Image=Image.FromStream(stream);
试试
huangsuipeng
2004-04-01
打赏
举报
回复
UP
cgsun
2004-04-01
打赏
举报
回复
System.IO.MemoryStream stream = new System.IO.MemoryStream();
System.IO.BinaryWriter writer = new System.IO.BinaryWriter(stream);
int BufferSize = 1024;
byte[] Buffer = new Byte[BufferSize];
long Offset = 0;
long BytesRead = 0;
do
{
BytesRead = dr.GetBytes(0, Offset, Buffer, 0, BufferSize);
writer.Write(Buffer, 0, (int)BytesRead);
Offset += BytesRead;
} while (BytesRead == BufferSize);
pictureBox1.Image=new Bitmap(stream);
whmjw
2004-04-01
打赏
举报
回复
我也遇到这个问题了,不知道如何解决,
HNU
2004-04-01
打赏
举报
回复
你把代码贴出来撒~~
cgsun
2004-04-01
打赏
举报
回复
stream是ystem.IO.MemoryStream.
好象和社么"有题头的图象"有关,大家帮帮忙
cgsun
2004-04-01
打赏
举报
回复
在Northwind数据库里的Employees里的photo,就会包错,
但是对于pub数据库里的pub_info里的logo就不会包错.
HNU
2004-04-01
打赏
举报
回复
代码完整点
heiguangbao
2004-04-01
打赏
举报
回复
你的stream 是什么/?
微软内部资料-SQL性能优化2
List at least two memory myths and why they are not true. Recommended Reading SQL Server 7.0 Performance Tuning Technical Reference, Microsoft Press Windows 2000 Resource Kit companion CD-...
Tricks of the Windows video Game Programming---part1
Tricks of the Windows video Game Programming <br>PART I Windows Programming Foundations 7 1 Journey into the Abyss 9 A Little History.............................................................
货拉拉大数据对
BitMap
的探索与实践(上)
本文首先通过对于
BitMap
的简单实现以及对于Java中BitSet源码的分析,提升读者对于其底层原理的理解,然后分析了
BitMap
的特点,并针对其存储优化的方案,讲解了Roaring
Bitmap
技术的原理,最后列举了对于
BitMap
的常见...
new
Bitmap
出现out of memory异常的解决办法
原文链接http://blog.opennetcf.com/ctacke/PermaLink,guid,987041fc-2e13-4bab-930a-f79021225... 转载
Bitmap
s in the Compact Framework The
Bitmap
class in the Compact Framework is a confusing thing,...
浅析
Bitmap
占据内存大小
April is your lie 首页 归档 分类 标签 关于 搜索 浅析
Bitmap
占据内存大小 发表于 2016-07-12 ...
Bitmap
的
使用
是开发时绕不过的坑,
使用
时要处处留意内存问题,稍有不慎就会报OOM
C#
110,537
社区成员
642,576
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章