RandomNoiseDitherer(AutoStrengthMode, NullableInt32) Constructor

Initializes a new instance of the RandomNoiseDitherer class with a specific auto strength strategy.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.2.0
C#
public RandomNoiseDitherer(
	AutoStrengthMode autoStrengthMode,
	int? seed = null
)

Parameters

autoStrengthMode  AutoStrengthMode
An AutoStrengthMode value specifying the desired behavior for calibrating auto strength.
See the Remarks section of the OrderedDitherer.ConfigureStrength method for more details and some examples regarding dithering strength. The same applies also for the RandomNoiseDitherer class.
seed  NullableInt32  (Optional)
If , then a ThreadSafeRandom instance will be used internally with a time-dependent seed value, and the dithering session will allow parallel processing. If not , then a Random instance will be created for each dithering session with the specified seed, and the dithering session will not allow parallel processing.

Exceptions

ArgumentOutOfRangeExceptionautoStrengthMode is not one of the defined values.

See Also