用C#实现:从文件中读取二进制数据,将1标记为黑色,将0标记为白色,并打印出图像。请教实现的方法

[复制链接]
查看11 | 回复1 | 2008-10-2 21:58:30 | 显示全部楼层 |阅读模式
FileStream fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + "data.txt",FileMode.OpenOrCreate,FileAccess.Read);
Bitmap bmp = new Bitmap(1, (int)fs.Length * 8);
int h = 0;
for (int i = 0; i < fs.Length; i++)
{
int b = fs.ReadByte();
...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行