C# Class PckView.Bmp

Summary description for Bmp.
显示文件 Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Methods

Method Description
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

Method Details

Draw() public static method

public static Draw ( Bitmap src, Bitmap dest, int x, int y ) : void
src System.Drawing.Bitmap
dest System.Drawing.Bitmap
x int
y int
return void

FireLoadingEvent() public static method

public static FireLoadingEvent ( int curr, int total ) : void
curr int
total int
return void

Load() public static method

public static Load ( string file, Type collectionType ) : xCollection
file string
collectionType System.Type
return xCollection

LoadSingle() public static method

public static LoadSingle ( Bitmap src, int num, Palette pal, Type collectionType ) : ITile
src System.Drawing.Bitmap
num int
pal Palette
collectionType System.Type
return ITile

MakeBitmap() public static method

public static MakeBitmap ( int width, int height, System.Drawing.Imaging.ColorPalette pal ) : Bitmap
width int
height int
pal System.Drawing.Imaging.ColorPalette
return System.Drawing.Bitmap

MakeBitmap() public static method

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
return System.Drawing.Bitmap

Save() public static method

public static Save ( Stream s, Bitmap image ) : void
s Stream
image System.Drawing.Bitmap
return void

Save() public static method

public static Save ( string path, Bitmap image ) : void
path string
image System.Drawing.Bitmap
return void

Save24() public static method

public static Save24 ( Stream s, Bitmap image ) : void
s Stream
image System.Drawing.Bitmap
return void

Save24() public static method

public static Save24 ( string path, Bitmap image ) : void
path string
image System.Drawing.Bitmap
return void

To16Bit() public static method

public static To16Bit ( Bitmap old ) : Bitmap
old System.Drawing.Bitmap
return System.Drawing.Bitmap

To24Bit() public static method

public static To24Bit ( Bitmap old ) : Bitmap
old System.Drawing.Bitmap
return System.Drawing.Bitmap