C# Class TpTrayUtility.Components.Tools.BitmapWrapper

Inheritance: IDisposable
显示文件 Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Methods

Method Description
BitmapWrapper ( Bitmap bitmap ) : System
Dispose ( ) : void
Save ( FileStream fileStream, System.Drawing.Imaging.ImageCodecInfo encoder, int quality ) : void
Save ( string fileName, string mimeType, int quality ) : void

Private Methods

Method Description
GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo

Method Details

BitmapWrapper() public method

public BitmapWrapper ( Bitmap bitmap ) : System
bitmap System.Drawing.Bitmap
return System

Dispose() public method

public Dispose ( ) : void
return void

Save() public method

public Save ( FileStream fileStream, System.Drawing.Imaging.ImageCodecInfo encoder, int quality ) : void
fileStream System.IO.FileStream
encoder System.Drawing.Imaging.ImageCodecInfo
quality int
return void

Save() public method

public Save ( string fileName, string mimeType, int quality ) : void
fileName string
mimeType string
quality int
return void