Some notes on software development... RSS 2.0
# Thursday, 14 February 2008

To convert an Icon to be used as a Bitmap you can use this function:

   
private Bitmap IconToBitmap(Icon icon)
{
    Bitmap bmp = new Bitmap(icon.Width, icon.Height);

    using (Graphics g = Graphics.FromImage(bmp))
    {
        g.DrawIcon(icon, 0, 0);
    }

    return bmp;
}

Thursday, 14 February 2008 11:49:30 (GMT Standard Time, UTC+00:00)  #    -
CF
Navigation

Sign In
Extras
Statistics
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Hadrian Phillips

All Content © 2018, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)