Home All Groups Group Topic Archive Search About
Author
21 Jul 2006 9:41 AM
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

Author
21 Jul 2006 10:25 AM
Kevin Spencer
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.



Show quote
"Angelina" <me.angel***@yahoo.com> wrote in message
news:OYgwVlKrGHA.716@TK2MSFTNGP03.phx.gbl...
> 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
>

AddThis Social Bookmark Button