Save Image
-
how can i save an image to a directory that i want with out using SaveFileDialog. Thanks Rock Throught The Night
-
how can i save an image to a directory that i want with out using SaveFileDialog. Thanks Rock Throught The Night
The SaveFileDialog is only used to get directory path and the filename where you want to save the image into. It does not save your image into the directory. If you already know where to save the image, you can specify the path directly to your function that writes the image file. Edbert P. Sydney, Australia.
-
The SaveFileDialog is only used to get directory path and the filename where you want to save the image into. It does not save your image into the directory. If you already know where to save the image, you can specify the path directly to your function that writes the image file. Edbert P. Sydney, Australia.
once more question: how to get the file extension. Thanks Rock Throught The Night
-
once more question: how to get the file extension. Thanks Rock Throught The Night
string ext = System.IO.Path.GetExtension(path); Don't people read help files anymore
-
once more question: how to get the file extension. Thanks Rock Throught The Night
In C#, there is a function called GetExtension that can return extension name of a file given the file path. Here's a sample code:
string fileName = @"C:\mydir.old\myfile.ext"; string extension; extension = Path.GetExtension(fileName); Console.WriteLine("GetExtension('{0}') returns '{1}'", fileName, extension);
Hope it helps :) Edbert P. Sydney, Australia.