C# Class ImageTools.SimpleImage

Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
SetPixels ( int width, int height, byte pixels ) : void

Sets the pixel array of the image.

SimpleImage ( ) : System

Initializes a new instance of the SimpleImage class.

SimpleImage ( SimpleImage other ) : System

Initializes a new instance of the SimpleImage class by making a copy from another image.

SimpleImage ( int width, int height ) : System

Initializes a new instance of the SimpleImage class with the height and the width of the image.

Method Details

SetPixels() public method

Sets the pixel array of the image.
/// is smaller than zero. /// - or - /// is smaller than zero. /// - or - /// is not a multiple of four, /// width and height. /// is null.
public SetPixels ( int width, int height, byte pixels ) : void
width int The new width of the image. /// Must be greater than zero.
height int The new height of the image. /// Must be greater than zero.
pixels byte The array with colors. Must be a multiple /// of four, width and height.
return void

SimpleImage() public method

Initializes a new instance of the SimpleImage class.
public SimpleImage ( ) : System
return System

SimpleImage() public method

Initializes a new instance of the SimpleImage class by making a copy from another image.
is null /// (Nothing in Visual Basic). is not loaded.
public SimpleImage ( SimpleImage other ) : System
other SimpleImage The other, where the clone should be made from.
return System

SimpleImage() public method

Initializes a new instance of the SimpleImage class with the height and the width of the image.
/// is equals or less than zero. /// - or - /// is equals or less than zero. ///
public SimpleImage ( int width, int height ) : System
width int The width of the image in pixels.
height int The height of the image in pixels.
return System