Search
Diagram.EffectsProvider Property
See Also
 





Gets or sets an object used to generate visual effects for shape nodes such as embossment and shadow dispersion.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public IEffectsProvider EffectsProvider { get; set; }

Visual Basic  Copy Code

Public Property EffectsProvider As IEffectsProvider

 Property Value

An object that implements the IEffectsProvider interface. The default is null (Nothing in Visual Basic).

 Remarks

For performance reasons, embossment and shadow dispersion effects are implemented through code that processes large amounts of image data by directly accessing the memory allocated to the image. The .NET runtime considers such code unsafe, and the default CAS settings prevent assemblies that contain unsafe code from being loaded in Internet Explorer or IIS. In order to keep the NetDiagram CAS requirements low, the unsafe code resides in a separate assembly - MindFusion.Diagramming.EffectsProvider.dll. If you wish to use the EnableEmbossEffects and EnableShadowEffects properties, you must add to your project a reference to that assembly, instantiate an EffectsProvider object, and assign it to the EffectsProvider property.

 See Also