Share via


ITransformProperty::AddPoint method

The AddPoint method adds a data point to the property.

Syntax

HRESULT AddPoint(
  [in]  double                  dblTime,
  [in]  PROPVARIANT             varpropValue,
  [out] ITransformPropertyPoint **ppCreatedPoint
);

Parameters

dblTime [in]

The time that is associated with this point.

varpropValue [in]

The value that is associated with this point.

ppCreatedPoint [out]

Address of a pointer to a copy of the created and added point. The caller must release this interface when it is no longer needed.

Return value

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Remarks

If a point at the time specified already exists, this method will add a duplicate point with the same time and a new value. Therefore, you should always check first to see if the time point exists, and if so, use SetValueAtTime instead.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
GPUPipelineTime.h
Library
GPUPipelineVC8.lib (Visual Studio 2005);
GPUPipelineVC7.lib (Visual Studio .NET)

See also

ITransformProperty Interface