FloatBuffer
Description
- Derived from
-
SampleBufferFloat32 abstract
- Extended by
-
DistanceBuffer sealed
NormalBuffer sealed
SlopeBuffer sealed
VectorBuffer sealed
A generic buffer for 32-bit floating-point values with a tuple size between one and four.
Depending on the tuple size N, tuple values are mapped to color channels as follows:
-
N = 1 / PixelFormat.Grayscale
tuple[0] = intensity -
N = 2 / PixelFormat.Truecolor
tuple[0] = red
tuple[1] = green -
N = 3 / PixelFormat.Truecolor
tuple[0] = red
tuple[1] = green
tuple[2] = blue -
N = 4 / PixelFormat.Truecolor, PixelFormat.Alpha
tuple[0] = red
tuple[1] = green
tuple[2] = blue
tuple[3] = alpha
The pixel format flag PixelFormat.Precision is also present in each of the above cases. If the alpha channel is not mapped, it has the default value 1 (i.e., fully opaque). If the blue channel is not mapped, it has the default value 0. The intensity channel is replicated to the red, green and blue channels.
Protected / Constructors
FloatBuffer
2 overloads
Creates a new instance of FloatBuffer.
Creates a new instance of FloatBuffer.
This sample buffer will use the given data array.