C# 클래스 Sphere.Core.Utility.BitmapLoader

Efficiently loads bitmaps from a filestream.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

BitmapFromDIB() 공개 정적인 메소드

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

BitmapLoader() 공개 메소드

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.
리턴 System

Close() 공개 메소드

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

Dispose() 공개 메소드

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

LoadFromStream() 공개 메소드

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.
리턴 System.Drawing.Bitmap