Click or drag to resize
DigitalRuneColorCorrectionFilterCreateLookupTexture2D Method (GraphicsDevice, Int32)
Creates the default 2D lookup texture (no color transformations) with the specified lookup table size.

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Texture2D CreateLookupTexture2D(
	GraphicsDevice graphicsDevice,
	int size
)

Parameters

graphicsDevice
Type: GraphicsDevice
The graphics device.
size
Type: SystemInt32
The size of the lookup table (= the number of entries per color channel). The recommended size is 16.

Return Value

Type: Texture2D
The default 2D lookup texture which contains no color transformations.
Exceptions
ExceptionCondition
ArgumentNullExceptiongraphicsDevice is .
ArgumentOutOfRangeExceptionsize is 0 or negative.
See Also