AB4D Forum

Full Version: What happened to GeometrySettings.UseResources?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just tried to update ReaderWmf to version 7.2.5960.1045.
Our code contains the following:

Code:
var geometrySettings = Ab2d.Common.ReaderWmf.GeometrySettings.FullOptimization;
geometrySettings.UseResources = false;
geometrySettings.CombineAllSameIntoOneGeometry = false;

But the UseResources property seems to be not available any more.

Update: Setting ResourcesCountLimit to 0 seems to have the same effect. Can you confirm that this is the correct replacement?

Klaus
You are right.

The ResourcesCountLimit is a replacement for UseResources property.
It provides more control over resource - the following is the text for help file:

Defines if the pens and brushed are written into resources.
If ResourcesCountLimit is equal or less than 0 than resources are not used.
If ResourcesCountLimit is 1 than all pens and brushes are written to resources.
If ResourcesCountLimit is 2 (or higher) than all pens and brushes that are used 2 (or more) times are written to resources.