图片读取
来源:互联网 发布:夜神月名字倒过来知乎 编辑:程序博客网 时间:2024/04/28 10:42
System.Byte[] IamageCount;
Image img;
priavte void ReadPic()
{
string FileName=图片路径;
if(this.JudgeFile(FileName)==false )
{
MessageBox.Show("找不到图像文件!","消息提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
FileStream ImageStream= new FileStream(FileName,FileMode.Open,FileAccess.Read); //文件流
int ImageLength =Convert.ToInt32(ImageStream.Length);
this.IamgeCount =new Byte[ImageLength];
this.img =Image.FromStream(ImageStream);
this.picR4.Image=this.img;
}
/// <summary>
/// 判断图像文件是否存在该路径中
/// </summary>
/// <param name="fileName"></param>
/// <returns></returns>
private bool JudgeFile(string fileName)
{
if(File.Exists(fileName)==true )
{
return true;
}
else
{
return false;
}
}
- 图片读取
- 图片读取
- 读取图片
- 图片读取
- 文件读取(读取图片)
- opencv读取图片读取不成功
- 读取图片路径,显示图片
- 读取图片并打印图片
- 读取数据库图片
- 从数据库读取图片
- GDI+读取图片
- 从数据库读取图片
- 读取网络图片
- 读取输出图片
- 【转】图片读取
- hibernate+mysql图片读取
- jxl 读取Excel图片
- java读取BMP图片
- hihi
- Google从入门到精通 v4.0
- java ee5平台java持久化开发(ejb3和jsf)
- C/C++语言void及void指针深层探索
- SQL2000的数据类型
- 图片读取
- java开源有必要了解一些技术
- 用jconsole 查看Mbean
- ARM开发者请进!
- xml编程接口
- 游戏中动画的基础
- XMLDOM对象方法,对象属性
- 《情剑》开发经历
- javascript事件列表解说