PDA

View Full Version : channelValues



Photovor
12-31-2008, 03:56 PM
I was wondering if someone can expand on the channelValues as in:
C#: void (http://www.doityourselfchristmas.com/forums/ms-help://MS.NETDEVFX.v20.en/cpref2/html/T_System_Void.htm) Event( byte (http://www.doityourselfchristmas.com/forums/ms-help://MS.NETDEVFX.v20.en/cpref2/html/T_System_Byte.htm)[] channelValues)

Does anyone have a description of what channelValues actually holds?

Photovor
12-31-2008, 04:10 PM
I think I may have gotten it-

channelValues[i] returns the brightness, 0-255, correct?

A Marchini
12-31-2008, 06:32 PM
I think I may have gotten it-

channelValues[i] returns the brightness, 0-255, correct?

Yes you are passed an array of the channels assigned to the plug-in.
If your end device requires dimming then you work with the full range, if it is on/off then you just look for non zero values.

Tony M.