Click or drag to resize
DigitalRuneTerrainHelperGetTextureLevelVector4 Method
Gets the texture data of the specified mipmap level as a Vector4 array.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Vector4[] GetTextureLevelVector4(
	Texture2D texture,
	int level
)

Parameters

texture
Type: Texture2D
The texture.
level
Type: SystemInt32
The mipmap level to read. Currently only 0 is supported!

Return Value

Type: Vector4
The array containing the data of the specified mipmap level. (One Vector4 element per pixel.)
Exceptions
ExceptionCondition
ArgumentNullExceptiontexture is .
NotImplementedException Invalid mipmap level. Extracting mipmap levels other than 0 is not yet implemented.
NotSupportedException Texture format is not yet supported.
Remarks

This method can be used with following texture surface formats: Alpha8, Color, Rg32, Rgba64, Single, Vector2, Vector4, HalfSingle, HalfVector2, HalfVector4

See Also