C# Class Animatroller.Framework.LogicalDevice.VirtualPixel2D3

Inheritance: SingleOwnerDevice, IPixel2D2, IApiVersion3, IReceivesBrightness
显示文件 Open project: HakanL/animatroller Class Usage Examples

Protected Properties

Property Type Description
devices List
pixelHeight int
pixelWidth int

Public Methods

Method Description
AddPixelDevice ( Utility.PixelMap[]>.Dictionary pixelMapping, Action pixelsChanged ) : void
BuildDefaultData ( IData data ) : void
InjectRow ( Color color, double brightness = 1.0, IControlToken token = null ) : void
SetBrightness ( double brightness, IControlToken token = null ) : void
SetColor ( Color color, double brightness = 1.0, IControlToken token = null ) : void
SetColorRange ( Color color, double brightness = 1.0, int startX, int startY, int width = null, int height = null, IControlToken token = null ) : void
VirtualPixel2D3 ( int pixelWidth, int pixelHeight, [ name = "" ) : System

Protected Methods

Method Description
Output ( ) : void
PreprocessPushData ( IData data ) : IData

Private Methods

Method Description
GetBitmap ( ) : Bitmap
GetColorFromColorAndBrightness ( Color input, double brightness ) : Color
Inject ( Color color, double brightness = 1.0, IControlToken token = null ) : void

Method Details

AddPixelDevice() public method

public AddPixelDevice ( Utility.PixelMap[]>.Dictionary pixelMapping, Action pixelsChanged ) : void
pixelMapping Utility.PixelMap[]>.Dictionary
pixelsChanged Action
return void

BuildDefaultData() public method

public BuildDefaultData ( IData data ) : void
data IData
return void

InjectRow() public method

public InjectRow ( Color color, double brightness = 1.0, IControlToken token = null ) : void
color Color
brightness double
token IControlToken
return void

Output() protected method

protected Output ( ) : void
return void

PreprocessPushData() protected method

protected PreprocessPushData ( IData data ) : IData
data IData
return IData

SetBrightness() public method

public SetBrightness ( double brightness, IControlToken token = null ) : void
brightness double
token IControlToken
return void

SetColor() public method

public SetColor ( Color color, double brightness = 1.0, IControlToken token = null ) : void
color Color
brightness double
token IControlToken
return void

SetColorRange() public method

public SetColorRange ( Color color, double brightness = 1.0, int startX, int startY, int width = null, int height = null, IControlToken token = null ) : void
color Color
brightness double
startX int
startY int
width int
height int
token IControlToken
return void

VirtualPixel2D3() public method

public VirtualPixel2D3 ( int pixelWidth, int pixelHeight, [ name = "" ) : System
pixelWidth int
pixelHeight int
name [
return System

Property Details

devices protected_oe property

protected List devices
return List

pixelHeight protected_oe property

protected int pixelHeight
return int

pixelWidth protected_oe property

protected int pixelWidth
return int