Skip to content

How to add a custom threshold map #1005

Answered by dlemstra
derekjohn37 asked this question in Help
Discussion options

You must be logged in to vote

You can do that with the ConfigurationFiles class. Below is an example of how you can change the Threshold.Data configuration:

var configuration = ConfigurationFiles.Default;
configuration.Thresholds.Data = "<yourxml/>";

MagickNET.Initialize(configuration);

Make sure you call MagickNET.Initialize at the start of your program.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@derekjohn37
Comment options

Answer selected by dlemstra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants