C# Class NSMBe4.ImageIndexer

Afficher le fichier Open project: Dirbaio/NSMB-Editor Class Usage Examples

Méthodes publiques

Свойство Type Description
imageData ].Byte[
palettes Color[][]

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
closestMultiColor ( MultiColor mc ) : byte
getDominantBox ( ) : Box
median ( List values, int total ) : byte
shrinkBox ( Box b ) : Box
split ( Box b ) : void

Method Details

ImageIndexer() public méthode

public ImageIndexer ( List bl ) : System
bl List
Résultat System

ImageIndexer() public méthode

public ImageIndexer ( List bl, bool useAlpha ) : System
bl List
useAlpha bool
Résultat System

ImageIndexer() public méthode

public ImageIndexer ( List bl, int paletteCount, bool useAlpha, int transpCol ) : System
bl List
paletteCount int
useAlpha bool
transpCol int
Résultat System

closest() public static méthode

public static closest ( Color c, Color palette ) : byte
c Color
palette Color
Résultat byte

colorDifference() public static méthode

public static colorDifference ( Color a, Color b ) : float
a Color
b Color
Résultat float

colorDifferenceWithoutAlpha() public static méthode

public static colorDifferenceWithoutAlpha ( Color a, Color b ) : float
a Color
b Color
Résultat float

createPaletteForImage() public static méthode

public static createPaletteForImage ( Bitmap b ) : Color[]
b System.Drawing.Bitmap
Résultat Color[]

createPaletteForImage() public static méthode

public static createPaletteForImage ( Bitmap b, int palLen ) : Color[]
b System.Drawing.Bitmap
palLen int
Résultat Color[]

getTiledImageData() public méthode

public getTiledImageData ( ) : byte[]
Résultat byte[]

getTiledImageDataPart() public méthode

public getTiledImageDataPart ( int px, int py, int ptx, int pty ) : byte[]
px int
py int
ptx int
pty int
Résultat byte[]

indexImageWithPalette() public static méthode

public static indexImageWithPalette ( Bitmap b, Color palette ) : byte[]
b System.Drawing.Bitmap
palette Color
Résultat byte[]

previewImage() public méthode

public previewImage ( int i ) : Bitmap
i int
Résultat System.Drawing.Bitmap

reduce() public static méthode

public static reduce ( int c ) : byte
c int
Résultat byte

Property Details

imageData public_oe property

public Byte[,] imageData
Résultat ].Byte[

palettes public_oe property

public Color[][] palettes
Résultat Color[][]