Imgaes from Icon

  • Thread starter Thread starter Angelina
  • Start date Start date
A

Angelina

Do any one knows how can we extract all size of icons fron a icon into
images int .NET

e.g. a icon may contain three image type
1.16x16, 256 color
2. 24x24, 256 color
3. 32x32, 256 color

Now how can I get all of

- Angelina
 
Hi Angelina,

The System.Drawing.Icon class has everything you need. The Icon constructor
is overloaded, so that you can create an instance of an icon class
specifying a size, and an icon containing the image of the specified size
(if it exists) is returned. You can then use the ToBitmap method to extract
the image from it. See
http://msdn2.microsoft.com/en-us/library/system.drawing.icon.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
Back
Top