Home All Groups Group Topic Archive Search About

Render from Imagelist

Author
21 Nov 2007 8:19 AM
John Stulle
Hello.
Can anybody tell me how to render an image from an imagelist to a given
hdc. I would like to be able to stretch or shrink the image as well.
Thank you very much for a reply.
John

Author
21 Nov 2007 4:31 PM
Herfried K. Wagner [MVP]
"John Stulle" <j.stulleNOSPAM@googlemail.com> schrieb:
> Can anybody tell me how to render an image from an imagelist to a given
> hdc. I would like to be able to stretch or shrink the image as well.

Take a look at 'ImageList.Draw' and 'Graphics.FromHdc'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
21 Nov 2007 10:38 PM
John Stulle
Thanks man!