loading an image in to Bitmap
Andrew Dunn <[email protected]> Thu, 12 Jul 2007 09:07:57 +1000
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <5B2CE496DCCE2040B271D9417E72CB2815C3EC@bdbdc2.corporate.hcn.com.au> |
Hi, I'm trying to load an image in to the bitmap class. It is working ok, but I need to load it in to the bitmap class and not reference the file on the computer anymore. Eg: Bitmap Photo = new (Bitmap)Bitmap.FromFile(FileName); File.Delete(FileName); The second line will throw an error saying the file is in use. I have tried all difference combinations of new Bitmap() but all seem to keep referencing the file on the disk, is there any way to do this (just keep the image in memory)? Thank you, Andrew =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com