Extracting bitmaps out of imagelist c#

A visitor to my site entered the search: "extract bitmaps out of imagelist c#"

There are a couple of ways to do this, a simple one is to simply call the Save method on the ImageList Item:

imageList1.Images[i].Save("c:\\test.jpg", ImageFormat.Bmp);

You could however save it to a Stream, and then manipulate the image as you see fit.

MemoryStream ms = new MemoryStream();
imageList1.Images[i].Save(ms, ImageFormat.Bmp);
byte[] imageBits = ms.ToArray();
//Manipulate data

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , , ,

My Related Documents
, , , ,

Related Amazon Books
Compressed Image File Formats: JPEG, PNG, GIF, XBM, BMP (ACM Press S.): / The Programmer's Guide to Compressed Image Files: Jpeg, Png, Gif, Xbm, Bmp: / Professional ASP.NET 2.0: / Beginning ASP.NET 2.0: / Pro C# 2005 & the .NET 2.0 Platform: / ASP.NET 2 for Dummies (For Dummies S.): / Beginning Visual C# 2005: /

Related Images From Flickr