C# Class Imaging.DDSReader.DDS

This is the main class of the library. All static methods are contained within.
Show file Open project: andburn/dds-reader

Public Methods

Method Description
LoadImage ( Stream stream, bool alpha = true ) : Bitmap

Loads a DDS image from a Stream, and returns a Bitmap object of the image.

LoadImage ( byte data, bool alpha = true ) : Bitmap

Loads a DDS image from a byte array, and returns a Bitmap object of the image.

LoadImage ( string file, bool alpha = true ) : Bitmap

Loads a DDS image from a file, and returns a Bitmap object of the image.

Method Details

LoadImage() public static method

Loads a DDS image from a Stream, and returns a Bitmap object of the image.
public static LoadImage ( Stream stream, bool alpha = true ) : Bitmap
stream Stream The stream to read the image data from.
alpha bool Preserve the alpha channel or not. (default: true)
return System.Drawing.Bitmap

LoadImage() public static method

Loads a DDS image from a byte array, and returns a Bitmap object of the image.
public static LoadImage ( byte data, bool alpha = true ) : Bitmap
data byte The image data, as a byte array.
alpha bool Preserve the alpha channel or not. (default: true)
return System.Drawing.Bitmap

LoadImage() public static method

Loads a DDS image from a file, and returns a Bitmap object of the image.
public static LoadImage ( string file, bool alpha = true ) : Bitmap
file string The image file.
alpha bool Preserve the alpha channel or not. (default: true)
return System.Drawing.Bitmap