将图片转换成HTML格式的文字图程序源代码
将图片转换成HTML格式的文字图程序源代码.txt
■ 将图片转换成HTML格式的文字图
————————————————以下为程序代码—————————————
using System;
using System.Drawing;
using System.Text;
namespace http://doc.docsou.com.ClassLib
{
///
/// 将图片转换为Html
///
public class Picture2HtmlPicture
{
///
/// 构造函数
///
public Picture2HtmlPicture()
{
//构造函数
}
///
/// 将图片转换为HTML
///
/// 图片文件名
/// HTML内容
public string MakeHtmlPicture(string FileName)
{
try
{
int intX;
int intY;
int intWidth;
Color clrPicture;
Bitmap bmpPicture;
StringBuilder sb = new StringBuilder();
//检测文件名是否为空,如果为空,则返回空
if (FileName =&