importar imagenes


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace imagenes
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnSeleccionar_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "seleccionar la imagen";
ofd.Title = "todos(*.*)|*.*|imagenes|*.jpg;*.bmp;*.gif;*.bnp";
if (ofd.ShowDialog() == DialogResult.OK)
{
this.pictureBox1.Image= Image.FromFile(ofd.FileName);
}
}
}
}
  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

0 Response to "importar imagenes"

Publicar un comentario

Buscar en este blog