C# Class Sphere.Core.Utility.BitmapLoader

Efficiently loads bitmaps from a filestream.
Inheritance: IDisposable
显示文件 Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
BitmapFromDIB ( MemoryStream DIBstream ) : Bitmap

Generates a bitmap from a DIB object.

BitmapLoader ( int width, int height ) : System

Creates a new bitmap loader. Which loads bitmaps from filestreams.

Close ( ) : void

Closes and releases any resources being used.

Dispose ( ) : void

Disposes and clears all data.

LoadFromStream ( BinaryReader reader, int amount ) : Bitmap

Creates a bitmap from a filestream.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

BitmapFromDIB() public static method

Generates a bitmap from a DIB object.
public static BitmapFromDIB ( MemoryStream DIBstream ) : Bitmap
DIBstream System.IO.MemoryStream A stream representing a DIB object.
return System.Drawing.Bitmap

BitmapLoader() public method

Creates a new bitmap loader. Which loads bitmaps from filestreams.
public BitmapLoader ( int width, int height ) : System
width int The image width in pixels.
height int the image height in pixels.
return System

Close() public method

Closes and releases any resources being used.
public Close ( ) : void
return void

Dispose() public method

Disposes and clears all data.
public Dispose ( ) : void
return void

LoadFromStream() public method

Creates a bitmap from a filestream.
public LoadFromStream ( BinaryReader reader, int amount ) : Bitmap
reader System.IO.BinaryReader The System.IO.BinaryReader to use.
amount int The size in bytes of the image.
return System.Drawing.Bitmap