R
Ron
I am building a dynamic image loading class. I have a list of properties
that have associated images in a specified directory. The problem they are
multiple formats which are not known at runtime...and to make matters worse
users are allowed to use images in any format...so long as they have the
filename that matches the property name.
My problem stems from the fact that I dont know the extension of the
file...only the filename...so file.exists and new Bitmap(filename) dont work
without an extension. Is there anyway to dynamically retrieve the extension
from a file...or open it without using an extension?
Thanks,
Ron
that have associated images in a specified directory. The problem they are
multiple formats which are not known at runtime...and to make matters worse
users are allowed to use images in any format...so long as they have the
filename that matches the property name.
My problem stems from the fact that I dont know the extension of the
file...only the filename...so file.exists and new Bitmap(filename) dont work
without an extension. Is there anyway to dynamically retrieve the extension
from a file...or open it without using an extension?
Thanks,
Ron