ID2D1EffectContext1::CreateLookupTable3D method (d2d1effectauthor_1.h)
Creates a 3D lookup table for mapping a 3-channel input to a 3-channel output. The table data must be provided in 4-channel format.
Syntax
HRESULT CreateLookupTable3D(
D2D1_BUFFER_PRECISION precision,
[in] const UINT32 *extents,
[in] const BYTE *data,
UINT32 dataCount,
[in] const UINT32 *strides,
[out] ID2D1LookupTable3D **lookupTable
);
Parameters
precision
Type: D2D1_BUFFER_PRECISION
Precision of the input lookup table data.
[in] extents
Type: const UINT32*
Number of lookup table elements per dimension (X, Y, Z).
[in] data
Type: const BYTE*
Buffer holding the lookup table data.
dataCount
Type: UINT32
Size of the lookup table data buffer.
[in] strides
Type: const UINT32*
An array containing two values. The first value is the size in bytes from one row (X dimension) of LUT data to the next. The second value is the size in bytes from one LUT data plane (X and Y dimensions) to the next.
[out] lookupTable
Type: ID2D1LookupTable3D**
Receives the new lookup table instance.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1effectauthor_1.h |
Library | D2D1.lib |
DLL | D2D1.dll |