RenderWindow.Channel
ReferencesProperties
Methods
Add value to existing values at point x, y. If x or y are out of range, the function will fail and may crash Rhino.
public void AddValue()
x,
The horizontal pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
y,
The vertical pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
value
The color to store in the channel at the specified position.
public void Dispose()
Get the minimum and maximum values in the channel.
minThe channel's minimum value. maxThe channel's maximum value.Get values from the channel.
Get a rectangle of values from the channel. The input parameters are checked for validity. If the rectangle is not fully inside the frame buffer, the function will fail.
public void GetValues()
Returns the size of the data in one pixel in the channel. For RDK standard channels, this value is always sizeof(float). For the special chanRGBA collective channel, this value is 4 * sizeof(float).
Returns: The size of a pixel.
If x or y are out of range, the function will fail and may crash Rhino.
public void SetValue()
x,
The horizontal pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
y,
The vertical pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
value
The color to store in the channel at the specified position.
Assign
value to a pixel at coordinate (x, y).public void SetValue()
x,
The horizontal pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
y,
the vertical pixel position. No validation is done on this value. The caller is responsible for ensuring that it is within the frame buffer.
value
The value to store in the channel at the specified position.
Set a pixel buffer
public void SetValues()
rectangle,
bufferResolution,
colorBuffer
PixelBuffer to a color buffer of floats in RGBA format.
Set a pixel buffer y-flipped.
public void SetValuesFlipped()
rectangle,
bufferResolution,
colorBuffer
PixelBuffer to a color buffer of floats in RGBA format.