[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Effect.Create

Create Method

Create(DeviceContext, Guid)

Initializes a new instance of the Effect class.

Declaration
public static Effect Create(DeviceContext deviceContext, Guid effectId)
Parameters
Type Name Description
DeviceContext deviceContext

The device context.

Guid effectId

The class ID of the effect to create.

Returns
Type Description
Effect
Remarks

The created effect does not increment the reference count for the dynamic-link library (DLL) from which the effect was created. If the application deletes an effect while that effect is loaded, the resulting behavior will be unpredictable.

Create(EffectContext, Guid)

Initializes a new instance of the Effect class.

Declaration
public static Effect Create(EffectContext effectContext, Guid effectId)
Parameters
Type Name Description
EffectContext effectContext

The effect context.

Guid effectId

The class ID of the effect to create.

Returns
Type Description
Effect