C# Class AlbLib.Imaging.Drawing

Main class which works with palettes and draws images.
Datei anzeigen Open project: IllidanS4/AlbLib Class Usage Examples

Public Methods

Method Description
DrawBitmap ( byte data, int width, byte palette ) : Bitmap

Computes height and draws bitmap.

DrawBitmap ( byte data, int width, int height, RenderOptions options ) : Bitmap

Draws bitmap.

DrawBitmap ( byte data, int width, int height, byte palette ) : Bitmap

Draws bitmap.

LoadBitmap ( Bitmap bmp, ImagePalette palette ) : byte[]

Converts bitmap to byte array using external palette.

Method Details

DrawBitmap() public static method

Computes height and draws bitmap.
public static DrawBitmap ( byte data, int width, byte palette ) : Bitmap
data byte /// Image pixel data. ///
width int /// Output image width. ///
palette byte /// Used palette index. ///
return System.Drawing.Bitmap

DrawBitmap() public static method

Draws bitmap.
public static DrawBitmap ( byte data, int width, int height, RenderOptions options ) : Bitmap
data byte /// Image pixel data. ///
width int /// Output image width. ///
height int /// Output image height. ///
options RenderOptions /// More rendering options. ///
return System.Drawing.Bitmap

DrawBitmap() public static method

Draws bitmap.
public static DrawBitmap ( byte data, int width, int height, byte palette ) : Bitmap
data byte /// Image pixel data. ///
width int /// Output image width. ///
height int /// Output image height. ///
palette byte /// Used palette index. ///
return System.Drawing.Bitmap

LoadBitmap() public static method

Converts bitmap to byte array using external palette.
public static LoadBitmap ( Bitmap bmp, ImagePalette palette ) : byte[]
bmp System.Drawing.Bitmap
palette ImagePalette
return byte[]