C# Class AlbLib.Imaging.RawImage

Inheritance: ImageBase
Show file Open project: IllidanS4/AlbLib Class Usage Examples

Public Methods

Method Description
FromBitmap ( Bitmap bmp, ImagePalette palette ) : RawImage

Creates new instance.

FromRawData ( byte data ) : RawImage

Creates new instance.

FromStream ( Stream stream, int length ) : RawImage

Creates new instance.

GetHeight ( ) : int
GetWidth ( ) : int
RawImage ( Stream stream, int length ) : System

Initializes new instance.

RawImage ( Stream stream, int width, int height ) : System

Initializes new instance.

RawImage ( byte rawdata ) : System

Initializes new instance.

RawImage ( byte data, int width ) : System

Initializes new instance.

RawImage ( byte data, int width, int height ) : System

Initializes new instance.

ToRawData ( ) : byte[]

Converts entire image to format-influenced byte array.

Method Details

FromBitmap() public static method

Creates new instance.
public static FromBitmap ( Bitmap bmp, ImagePalette palette ) : RawImage
bmp System.Drawing.Bitmap
palette ImagePalette
return RawImage

FromRawData() public static method

Creates new instance.
public static FromRawData ( byte data ) : RawImage
data byte
return RawImage

FromStream() public static method

Creates new instance.
public static FromStream ( Stream stream, int length ) : RawImage
stream Stream
length int
return RawImage

GetHeight() public method

public GetHeight ( ) : int
return int

GetWidth() public method

public GetWidth ( ) : int
return int

RawImage() public method

Initializes new instance.
public RawImage ( Stream stream, int length ) : System
stream Stream
length int
return System

RawImage() public method

Initializes new instance.
public RawImage ( Stream stream, int width, int height ) : System
stream Stream
width int
height int
return System

RawImage() public method

Initializes new instance.
public RawImage ( byte rawdata ) : System
rawdata byte
return System

RawImage() public method

Initializes new instance.
public RawImage ( byte data, int width ) : System
data byte
width int
return System

RawImage() public method

Initializes new instance.
public RawImage ( byte data, int width, int height ) : System
data byte
width int
height int
return System

ToRawData() public method

Converts entire image to format-influenced byte array.
public ToRawData ( ) : byte[]
return byte[]