C# 클래스 NSMBe4.ImageIndexer

파일 보기 프로젝트 열기: Dirbaio/NSMB-Editor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
imageData ].Byte[
palettes Color[][]

공개 메소드들

메소드 설명
ImageIndexer ( List bl ) : System
ImageIndexer ( List bl, bool useAlpha ) : System
ImageIndexer ( List bl, int paletteCount, bool useAlpha, int transpCol ) : System
closest ( Color c, Color palette ) : byte
colorDifference ( Color a, Color b ) : float
colorDifferenceWithoutAlpha ( Color a, Color b ) : float
createPaletteForImage ( Bitmap b ) : Color[]
createPaletteForImage ( Bitmap b, int palLen ) : Color[]
getTiledImageData ( ) : byte[]
getTiledImageDataPart ( int px, int py, int ptx, int pty ) : byte[]
indexImageWithPalette ( Bitmap b, Color palette ) : byte[]
previewImage ( int i ) : Bitmap
reduce ( int c ) : byte

비공개 메소드들

메소드 설명
closestMultiColor ( MultiColor mc ) : byte
getDominantBox ( ) : Box
median ( List values, int total ) : byte
shrinkBox ( Box b ) : Box
split ( Box b ) : void

메소드 상세

ImageIndexer() 공개 메소드

public ImageIndexer ( List bl ) : System
bl List
리턴 System

ImageIndexer() 공개 메소드

public ImageIndexer ( List bl, bool useAlpha ) : System
bl List
useAlpha bool
리턴 System

ImageIndexer() 공개 메소드

public ImageIndexer ( List bl, int paletteCount, bool useAlpha, int transpCol ) : System
bl List
paletteCount int
useAlpha bool
transpCol int
리턴 System

closest() 공개 정적인 메소드

public static closest ( Color c, Color palette ) : byte
c Color
palette Color
리턴 byte

colorDifference() 공개 정적인 메소드

public static colorDifference ( Color a, Color b ) : float
a Color
b Color
리턴 float

colorDifferenceWithoutAlpha() 공개 정적인 메소드

public static colorDifferenceWithoutAlpha ( Color a, Color b ) : float
a Color
b Color
리턴 float

createPaletteForImage() 공개 정적인 메소드

public static createPaletteForImage ( Bitmap b ) : Color[]
b System.Drawing.Bitmap
리턴 Color[]

createPaletteForImage() 공개 정적인 메소드

public static createPaletteForImage ( Bitmap b, int palLen ) : Color[]
b System.Drawing.Bitmap
palLen int
리턴 Color[]

getTiledImageData() 공개 메소드

public getTiledImageData ( ) : byte[]
리턴 byte[]

getTiledImageDataPart() 공개 메소드

public getTiledImageDataPart ( int px, int py, int ptx, int pty ) : byte[]
px int
py int
ptx int
pty int
리턴 byte[]

indexImageWithPalette() 공개 정적인 메소드

public static indexImageWithPalette ( Bitmap b, Color palette ) : byte[]
b System.Drawing.Bitmap
palette Color
리턴 byte[]

previewImage() 공개 메소드

public previewImage ( int i ) : Bitmap
i int
리턴 System.Drawing.Bitmap

reduce() 공개 정적인 메소드

public static reduce ( int c ) : byte
c int
리턴 byte

프로퍼티 상세

imageData 공개적으로 프로퍼티

public Byte[,] imageData
리턴 ].Byte[

palettes 공개적으로 프로퍼티

public Color[][] palettes
리턴 Color[][]