comparison Agendas/trunk/src/Agendas.Domain/Patrocinador.cs @ 278:6f5ab71614d4

#125: ABM de patrocinadores.
author juanjose.montesdeocaarbos
date Wed, 21 Dec 2011 08:47:05 -0300
parents 72a96459f910
children 9bc60d166c8a
comparison
equal deleted inserted replaced
277:7439d7a5f8d0 278:6f5ab71614d4
17 { 17 {
18 } 18 }
19 19
20 public virtual void LoadLogo(string path) 20 public virtual void LoadLogo(string path)
21 { 21 {
22 var image = Image.FromFile(path); 22 using (var image = Image.FromFile(path))
23 var ms = new MemoryStream(); 23 {
24 image.Save(ms, image.RawFormat); 24 var ms = new MemoryStream();
25 Logo = ms.ToArray(); 25 image.Save(ms, image.RawFormat);
26 Logo = ms.ToArray();
27 }
26 } 28 }
27 } 29 }
28 } 30 }