IDCompositionTurbulenceEffect::SetOffset method (dcomp.h)

Sets the coordinates where the turbulence output is generated.


HRESULT SetOffset(
  [in, ref] const D2D1_VECTOR_2F & offset


[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


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


Target Platform Windows
Header dcomp.h
Library Dcomp.lib
DLL Dcomp.dll

See also