C# Class Sphere.Core.Utility.BitmapLoader

Efficiently loads bitmaps from a filestream.
Inheritance: IDisposable
Afficher le fichier Open project: Radnen/spherestudio Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Dispose ( bool disposing ) : void

Method Details

BitmapFromDIB() public static méthode

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

BitmapLoader() public méthode

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.
Résultat System

Close() public méthode

Closes and releases any resources being used.
public Close ( ) : void
Résultat void

Dispose() public méthode

Disposes and clears all data.
public Dispose ( ) : void
Résultat void

LoadFromStream() public méthode

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.
Résultat System.Drawing.Bitmap