Sunday, February 15, 2009

LINQ And Picture

TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap));
Bitmap b = (Bitmap)tc.ConvertFrom(c.Picture);
b.Save(context.Response.OutputStream, ImageFormat.Jpeg);
b.Dispose();

No comments:

Post a Comment