Saves the bitmap into specified file.
Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub Save ( _ fileName As String _ ) |
| C# |
|---|
public void Save ( string fileName ) |
| Visual C++ |
|---|
public: void Save ( String^ fileName ) |
Parameters
- fileName
- The name of the target file.
Remarks
This method analyzes a file extension to determine what file format to save to. If extention is unknown, method fails (exception is thrown).
This method does not support retrieving any encoder settings. If you need retrieve any settings, use this overloaded method instead.
Using this method is the same as creating appropriate writer derived from FormatWriter and running it in synchronous mode.
Examples
bitmap.Save("c:\result.jpg")
| |
bitmap.Save(@"c:\result.jpg"); | |