dataprocess.cs
来自「图书馆管理系统的一个代码 很好的学习借鉴」· CS 代码 · 共 23 行
CS
23 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;
namespace BookManagementSystem
{
class DataProcess
{
public DataProcess()
{
}
public Image GetImageFromFilePath(string FilePath)
{
FileStream fs = new FileStream(FilePath, FileMode.Open, FileAccess.Read);
byte[] ib = new Byte[fs.Length];
fs.Read(ib, 0, Convert.ToInt32(fs.Length));
MemoryStream buf = new MemoryStream(ib);
return Image.FromStream(buf, true);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?