public IImageConfiguration ConfigureQuantization(Action <IQuantizationOptions> configure) { ContractAssertions.IsNotNull(configure, nameof(configure)); if (_quantizationConfiguration == null) { _quantizationConfiguration = new QuantizationConfiguration(); } _quantizationConfiguration.ConfigureOptions(configure); return(this); }
public IImageConfiguration WithoutQuantization() { _quantizationConfiguration = null; return(this); }
private void SetQuantizationConfiguration(IQuantizationConfiguration quantizationConfiguration) { _quantizationConfiguration = quantizationConfiguration.Clone(); }