ID2D1DeviceContext2::CreateLookupTable3D method (d2d1_3.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

S_OK if successful, otherwise a failure HRESULT.

Requirements

   
Minimum supported client Windows 10 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext2