C# Class AnimalCrossingQR.AC.Pattern

Show file Open project: jefff/animalcrossingqr Class Usage Examples

Private Properties

Property Type Description
CalculateLeastImportantColor Color
CreateBestPalette HashSet
GetNearestColor Color
GetSecondNearestColor Color
LoadFromBytes void
LoadFromPixelData void
LoadFromStream void

Public Methods

Method Description
CreateFromRawData ( byte data ) : Pattern
GetPixel ( int x, int y ) : Color
GetRawData ( ) : byte[]
Pattern ( ) : System
Pattern ( Image image ) : System

Private Methods

Method Description
CalculateLeastImportantColor ( Color image, HashSet palette ) : Color
CreateBestPalette ( Color image ) : HashSet
GetNearestColor ( HashSet palette, Color color ) : Color
GetSecondNearestColor ( HashSet palette, Color color ) : Color
LoadFromBytes ( byte data ) : void
LoadFromPixelData ( byte data ) : void
LoadFromStream ( Stream stream ) : void

Method Details

CreateFromRawData() public static method

public static CreateFromRawData ( byte data ) : Pattern
data byte
return Pattern

GetPixel() public method

public GetPixel ( int x, int y ) : Color
x int
y int
return Color

GetRawData() public method

public GetRawData ( ) : byte[]
return byte[]

Pattern() public method

public Pattern ( ) : System
return System

Pattern() public method

public Pattern ( Image image ) : System
image Image
return System