using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApplication13
{
public partial class Form1 : Form
{
byte[] bytes;//用于存放图片字节数组
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.openFileDialog1.Filter = "*.jpg|*.jpg|*.gif|*.gif";
openFileDialog1.ShowDialog();
string openfile = this.openFileDialog1.FileName;
this.label1.Text = openfile;
if (string.IsNullOrEmpty(openfile)) return;//选择取消,则返回 <
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApplication13
{
public partial class Form1 : Form
{
byte[] bytes;//用于存放图片字节数组
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.openFileDialog1.Filter = "*.jpg|*.jpg|*.gif|*.gif";
openFileDialog1.ShowDialog();
string openfile = this.openFileDialog1.FileName;
this.label1.Text = openfile;
if (string.IsNullOrEmpty(openfile)) return;//选择取消,则返回 <