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.
Parameters:
| x (int) | 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 (int) | 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 (Color4f) | 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.[CLSCompliant(false)]
public void GetValue(int x, int y, ComponentOrders componentOrder, ref float[] values)
Get values from the channel.
Parameters:
| x (int) | |
| y (int) | |
| componentOrder (ComponentOrders) | |
| values (ref float[]) |
public void GetValues(Rectangle rectangle, int stride, ComponentOrders componentOrder, ref float[] values)
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.
Parameters:
| rectangle (Rectangle) | |
| stride (int) | |
| componentOrder (ComponentOrders) | |
| values (ref float[]) |
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.
Parameters:
| x (int) | 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 (int) | 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 (Color4f) | The color to store in the channel at the specified position. |
Assign
value to a pixel at coordinate (x, y).Parameters:
| x (int) | 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 (int) | 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 (float) | The value to store in the channel at the specified position. |
Set a pixel buffer
Parameters:
| rectangle (Rectangle) | |
| bufferResolution (Size) | |
| colorBuffer (PixelBuffer) | PixelBuffer to a color buffer of floats in RGBA format. |
Set a pixel buffer y-flipped.
Parameters:
| rectangle (Rectangle) | |
| bufferResolution (Size) | |
| colorBuffer (PixelBuffer) | PixelBuffer to a color buffer of floats in RGBA format. |