RandomNoiseDitherer(AutoStrengthMode, NullableInt32) Constructor
Initializes a new instance of the
RandomNoiseDitherer class with a specific auto strength strategy.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.2.0
public RandomNoiseDitherer(
AutoStrengthMode autoStrengthMode,
int? seed = null
)
Public Sub New (
autoStrengthMode As AutoStrengthMode,
Optional seed As Integer? = Nothing
)
public:
RandomNoiseDitherer(
AutoStrengthMode autoStrengthMode,
Nullable<int> seed = nullptr
)
new :
autoStrengthMode : AutoStrengthMode *
?seed : Nullable<int>
(* Defaults:
let _seed = defaultArg seed null
*)
-> RandomNoiseDitherer
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.