. Topicala Page Index Token

A Journal about the experiences I have developing little applications in C#, Perl, Html and Javascript and talking about things new things that I use. Always Geeky; Always Nerdy; Always poor Grammer!

I am a Software Analyst Developer working in Southport, England but living in Liverpool. I develop mainly in C# and ASP.Net. I have been developing comercial software for several years now. I maintain this site (hosted at SwitchMedia UK) as a way of exploring new technologies (such as AJAX) and just generally talking about techie geek issues. This site is developed through a host of Perl scripts and a liberal use of Javascript. I enjoy experimenting with new technologies and anything that I make I host here.

Quick Search

Web www.kinlan.co.uk

Monday, March 20, 2006

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

Comments: [Add New]

Wonder Full !!

Oww..Some..

It saves my life..

Now can u tell me.. here i m preparing one transparent image..

But it will created black colored backgrounded image..

Plz.. Sugges

By vachan, at Thursday, November 29, 2007 10:54:00 AM