ClearImage .NET API
SaveAs Method (ImageIO)





Inlite.ClearImageNet Namespace > ImageIO Class : SaveAs Method
Save  Bitmap to an image file.
Syntax
'Declaration
 
Public Sub SaveAs( _
   ByVal bmp As System.Drawing.Bitmap, _
   ByVal fileName As System.String _
) 
'Usage
 
Dim instance As ImageIO
Dim bmp As System.Drawing.Bitmap
Dim fileName As System.String
 
instance.SaveAs(bmp, fileName)
public void SaveAs( 
   System.Drawing.Bitmap bmp,
   System.string fileName
)
public procedure SaveAs( 
    bmp: System.Drawing.Bitmap;
    fileName: System.String
); 
public function SaveAs( 
   bmp : System.Drawing.Bitmap,
   fileName : System.String
);
public:
void SaveAs( 
   System.Drawing.Bitmap^ bmp,
   System.String^ fileName
) 

Parameters

bmp
fileName
Remarks

This method saves a Bitmap object to an image file.  The bitmap can be ImageEditor.Bitmap, obtained using CiImage.GetBitmap or ImageIO.Open methods

To avoid memory leaks, when done with Bitmap object, dispose of it with Bitmap.Dispose method or use using statement.

Format of an image file is based on fileName extension.  Image compression of TIFF and PDF files is controlled by compressionBitonalEx and compressionColorEx properties.  jpegQuality property controls compression when IO.compressionColorEx=jpeg or when out file format is JPEG

See Also

Reference

ImageIO Class
ImageIO Members