By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,419 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,419 IT Pros & Developers. It's quick & easy.

Preload an image?

P: n/a
pnp
How can I preload an image in an application before showing it in a panel?

-pnp
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can load it from disk using the FromFile method.

Bitmap bm=Bitmap.FromFile(@"C:\myimage.jpg")

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"pnp" <pnp.@.softlab.ntua.gr> wrote in message
news:Oi****************@TK2MSFTNGP12.phx.gbl...
How can I preload an image in an application before showing it in a panel?

-pnp

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.