C# 클래스 XCom.Bmp

파일 보기 프로젝트 열기: pmprog/OpenXCOM.Tools

공개 프로퍼티들

프로퍼티 타입 설명
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