Representar imagenes extension .img
Publicado por Romu (2 intervenciones) el 10/07/2017 16:05:20
Hola a todos,
estoy intentando representar en ventana picture imagenes contenidas en archivos extensión .img
según he leido se trata de imágenes graphics bitmap (no entiendo bien que significa esto).
para mostrarla he usado estas instrucciones
Sin embargo estas instrucciones solo me permiten mostrar imagenes bmp, jpg, png etc pero no .img
¿alguna idea?
Muchisimas gracias
estoy intentando representar en ventana picture imagenes contenidas en archivos extensión .img
según he leido se trata de imágenes graphics bitmap (no entiendo bien que significa esto).
para mostrarla he usado estas instrucciones
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
OpenFileDialog Abrir = new OpenFileDialog();
// Abrir.Filter = "*.bmp|*.gif|*.jpg|*.bmp.|*.gif;*.png";
//Abrir.Filter = "(*.bmp)*.bmp";//Archivos de texto (*.txt)|*.txt|
Abrir.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
Abrir.Title = "seleccionar la imagen que se guardará en la base de datos";
Abrir.RestoreDirectory = true;
if (Abrir.ShowDialog() == DialogResult.OK)
{
lblRutaImagen.Text = Abrir.FileName;
txtNombre.Text = Abrir.SafeFileName;
pictureBox1.Image = Image.FromFile(Abrir.FileName);
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
}
else
{
lblRutaImagen.Text = "";
pictureBox1.Image = null;
}
}
}
Sin embargo estas instrucciones solo me permiten mostrar imagenes bmp, jpg, png etc pero no .img
¿alguna idea?
Muchisimas gracias
Valora esta pregunta


0