C# Class PurplePen.BitmapUtil

Show file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
SaveBitmap ( Bitmap bitmap, string fileName, ImageFormat imageFormat ) : void
SaveGif ( Bitmap bitmap, string fileName ) : void
SaveJpeg ( Bitmap bitmap, string fileName, int quality ) : void
SaveTIFF ( Bitmap bitmap, string fileName ) : void

Private Methods

Method Description
GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Method Details

SaveBitmap() public static method

public static SaveBitmap ( Bitmap bitmap, string fileName, ImageFormat imageFormat ) : void
bitmap System.Drawing.Bitmap
fileName string
imageFormat System.Drawing.Imaging.ImageFormat
return void

SaveGif() public static method

public static SaveGif ( Bitmap bitmap, string fileName ) : void
bitmap System.Drawing.Bitmap
fileName string
return void

SaveJpeg() public static method

public static SaveJpeg ( Bitmap bitmap, string fileName, int quality ) : void
bitmap System.Drawing.Bitmap
fileName string
quality int
return void

SaveTIFF() public static method

public static SaveTIFF ( Bitmap bitmap, string fileName ) : void
bitmap System.Drawing.Bitmap
fileName string
return void