C# Класс PckView.Bmp

Summary description for Bmp.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Draw ( Bitmap src, Bitmap dest, int x, int y ) : void
FireLoadingEvent ( int curr, int total ) : void
Load ( string file, Type collectionType ) : xCollection
LoadSingle ( Bitmap src, int num, Palette pal, Type collectionType ) : ITile
MakeBitmap ( int width, int height, System.Drawing.Imaging.ColorPalette pal ) : Bitmap
MakeBitmap ( int width, int height, byte idx, System.Drawing.Imaging.ColorPalette pal ) : Bitmap

Creates a TRUE 8-bit indexed bitmap from the specified byte array

Save ( Stream s, Bitmap image ) : void
Save ( string path, Bitmap image ) : void
Save24 ( Stream s, Bitmap image ) : void
Save24 ( string path, Bitmap image ) : void
To16Bit ( Bitmap old ) : Bitmap
To24Bit ( Bitmap old ) : Bitmap

Описание методов

Draw() публичный статический Метод

public static Draw ( Bitmap src, Bitmap dest, int x, int y ) : void
src System.Drawing.Bitmap
dest System.Drawing.Bitmap
x int
y int
Результат void

FireLoadingEvent() публичный статический Метод

public static FireLoadingEvent ( int curr, int total ) : void
curr int
total int
Результат void

Load() публичный статический Метод

public static Load ( string file, Type collectionType ) : xCollection
file string
collectionType System.Type
Результат xCollection

LoadSingle() публичный статический Метод

public static LoadSingle ( Bitmap src, int num, Palette pal, Type collectionType ) : ITile
src System.Drawing.Bitmap
num int
pal Palette
collectionType System.Type
Результат ITile

MakeBitmap() публичный статический Метод

public static MakeBitmap ( int width, int height, System.Drawing.Imaging.ColorPalette pal ) : Bitmap
width int
height int
pal System.Drawing.Imaging.ColorPalette
Результат System.Drawing.Bitmap

MakeBitmap() публичный статический Метод

Creates a TRUE 8-bit indexed bitmap from the specified byte array
public static MakeBitmap ( int width, int height, byte idx, System.Drawing.Imaging.ColorPalette pal ) : Bitmap
width int width of final bitmap
height int height of final bitmap
idx byte image data
pal System.Drawing.Imaging.ColorPalette Palette to color the image with
Результат System.Drawing.Bitmap

Save() публичный статический Метод

public static Save ( Stream s, Bitmap image ) : void
s Stream
image System.Drawing.Bitmap
Результат void

Save() публичный статический Метод

public static Save ( string path, Bitmap image ) : void
path string
image System.Drawing.Bitmap
Результат void

Save24() публичный статический Метод

public static Save24 ( Stream s, Bitmap image ) : void
s Stream
image System.Drawing.Bitmap
Результат void

Save24() публичный статический Метод

public static Save24 ( string path, Bitmap image ) : void
path string
image System.Drawing.Bitmap
Результат void

To16Bit() публичный статический Метод

public static To16Bit ( Bitmap old ) : Bitmap
old System.Drawing.Bitmap
Результат System.Drawing.Bitmap

To24Bit() публичный статический Метод

public static To24Bit ( Bitmap old ) : Bitmap
old System.Drawing.Bitmap
Результат System.Drawing.Bitmap