C# Class Animatroller.Framework.Utility.PixelMapping

显示文件 Open project: HakanL/animatroller

Public Methods

Method Description
GeneratePixelMapping ( int pixels, int startUniverse, RgbOrder rgbOrder = RgbOrder.RGB, int channelShift ) : PixelMap[]>.Dictionary
GeneratePixelMapping ( int width, int height, int startUniverse, RgbOrder rgbOrder = RgbOrder.RGB, PixelOrder pixelOrder = PixelOrder.HorizontalSnakeTopLeft, int channelShift ) : PixelMap[]>.Dictionary
GeneratePixelMappingFromGlediatorPatch ( string fileName ) : PixelMap[]>.Dictionary

Private Methods

Method Description
MapPixel ( PixelMap[]>.Dictionary pixelMapping, int universe, ColorComponent colorComponent, int x, int y, int &mappingPos ) : void
MapPixelRGB ( PixelMap[]>.Dictionary pixelMapping, int x, int y, int &universe, int &mappingPos, RgbOrder rgbOrder, int channelShift ) : void

Method Details

GeneratePixelMapping() public static method

public static GeneratePixelMapping ( int pixels, int startUniverse, RgbOrder rgbOrder = RgbOrder.RGB, int channelShift ) : PixelMap[]>.Dictionary
pixels int
startUniverse int
rgbOrder RgbOrder
channelShift int
return PixelMap[]>.Dictionary

GeneratePixelMapping() public static method

public static GeneratePixelMapping ( int width, int height, int startUniverse, RgbOrder rgbOrder = RgbOrder.RGB, PixelOrder pixelOrder = PixelOrder.HorizontalSnakeTopLeft, int channelShift ) : PixelMap[]>.Dictionary
width int
height int
startUniverse int
rgbOrder RgbOrder
pixelOrder PixelOrder
channelShift int
return PixelMap[]>.Dictionary

GeneratePixelMappingFromGlediatorPatch() public static method

public static GeneratePixelMappingFromGlediatorPatch ( string fileName ) : PixelMap[]>.Dictionary
fileName string
return PixelMap[]>.Dictionary