Create Image object dynamically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've a image file name at runtime, and I want to create an Image object for this file
In .NET framework this is possible using

Image.FromFile(LOGO_IMAGE_PATH

But in compact framework I'm not able to figure out how to so the same
Please help me out on this
Thanks
 
Use the Bitmap constructor overload that takes a string (filename).

[VB]
New Bitmap(filename)

[C#]
new Bitmap(filename);
 
Back
Top