C# Класс XCom.Bmp

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultTransparentIndex byte

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

Метод Описание
Crop ( Bitmap src, Rectangle bounds ) : Bitmap
Draw ( Bitmap src, Bitmap dest, int x, int y ) : void
FireLoadingEvent ( int curr, int total ) : void
GetBoundsRect ( Bitmap src, int transparent ) : Rectangle
Hq2x ( Bitmap image ) : Bitmap
Load ( Bitmap b, Palette pal, int imgWid, int imgHei, int space ) : XCImageCollection

Loads a previously saved sprite sheet as a generic collection to be saved later

LoadTile ( Bitmap src, int imgNum, Palette p, int startX, int startY, int imgWid, int imgHei ) : XCImage
MakeBitmap ( int width, int height, System.Drawing.Imaging.ColorPalette pal ) : Bitmap
MakeBitmap8 ( int width, int height, byte idx, System.Drawing.Imaging.ColorPalette palette ) : Bitmap

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

Save ( string path, Bitmap image ) : void
Save24 ( Stream s, Bitmap image ) : void
Save24 ( string path, Bitmap image ) : void
SaveBMP ( string file, XCImageCollection collection, Palette pal, int across, int space ) : void

Saves an image collection as a bmp sprite sheet

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

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

public static Crop ( Bitmap src, Rectangle bounds ) : Bitmap
src System.Drawing.Bitmap
bounds System.Drawing.Rectangle
Результат System.Drawing.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

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

public static GetBoundsRect ( Bitmap src, int transparent ) : Rectangle
src System.Drawing.Bitmap
transparent int
Результат System.Drawing.Rectangle

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

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

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

Loads a previously saved sprite sheet as a generic collection to be saved later
public static Load ( Bitmap b, Palette pal, int imgWid, int imgHei, int space ) : XCImageCollection
b System.Drawing.Bitmap bitmap containing sprites
pal Palette
imgWid int
imgHei int
space int
Результат XCImageCollection

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

public static LoadTile ( Bitmap src, int imgNum, Palette p, int startX, int startY, int imgWid, int imgHei ) : XCImage
src System.Drawing.Bitmap
imgNum int
p Palette
startX int
startY int
imgWid int
imgHei int
Результат XCom.Interfaces.XCImage

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

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

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

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

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

Saves an image collection as a bmp sprite sheet
public static SaveBMP ( string file, XCImageCollection collection, Palette pal, int across, int space ) : void
file string output file name
collection XCImageCollection image collection
pal Palette Palette to color the images with
across int number of columns to use for images
space int
Результат void

Описание свойств

DefaultTransparentIndex публичное статическое свойство

public static byte DefaultTransparentIndex
Результат byte