IDCompositionTurbulenceEffect::SetOffset method (dcomp.h)
Sets the coordinates where the turbulence output is generated.
Syntax
HRESULT SetOffset(
[in, ref] const D2D1_VECTOR_2F & offset
);
Parameters
[in, ref] offset
Type: const D2D1_VECTOR_2F
The coordinates where the turbulence output is generated. The algorithm used to generate the Perlin noise is position dependent, so a different offset results in a different output. This value is not bounded and the units are specified in DIPs
Note Note The offset does not have the same effect as a translation because the noise function output is infinite and the function will wrap around the tile.
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 | dcomp.h |
Library | Dcomp.lib |
DLL | Dcomp.dll |