PD2D1_PROPERTY_SET_FUNCTION callback function (d2d1effectauthor.h)
Sets a property on an effect.
Syntax
PD2D1_PROPERTY_SET_FUNCTION Pd2d1PropertySetFunction;
HRESULT Pd2d1PropertySetFunction(
[in] IUnknown *effect,
[in] const BYTE *data,
UINT32 dataSize
)
{...}
Parameters
[in] effect
A pointer to the IUnknown interface for the effect on which the property will be set.
[in] data
A pointer to the data to be set on the property.
dataSize
The number of bytes in the property set by the function.
Return value
Returns S_OK if successful; otherwise, returns an HRESULT error code.
Remarks
Supply a PD2D1_PROPERTY_SET_FUNCTION function pointer to the setFunction member of a D2D1_PROPERTY_BINDING structure to specify the function that Direct2D uses to set data for a property.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1effectauthor.h |