Click or drag to resize
ReaderWmfCombineGradientPolygons Property
Gets or sets a Boolean that specifies if the polygons that are used to create a gradient are combined into one polygon with gradient brush. Default value is true.

Namespace: Ab2d
Assembly: Ab2d.ReaderWmf (in Ab2d.ReaderWmf.dll) Version: 7.1.5512.1040
Syntax
C#
public bool CombineGradientPolygons { get; set; }

Property Value

Type: Boolean
Remarks

Metafiles do not support gradient brushes. Therefore gradient effects are simulated with many polygons where each of them have slightly different brush applied.

This is problematic because creating many polygon elements can affect performance and increase memory usage. Even bigger problem with this is that because of the way WPF is doing antialiazing a lines can appear between the polygons regardless the fact that they are created in such a way that there should not ba any line beteen them.

To overcome those two problems the ReaderWmf library can combine the polygons that have similar brushes (are used to simulate gradient) and have common points (are created one by another).

This functionality is controlled by CombineGradientPolygons property. By default the property is set to true.

See Also