コード例 #1
0
        public IImageConfiguration ConfigureQuantization(Action <IQuantizationOptions> configure)
        {
            ContractAssertions.IsNotNull(configure, nameof(configure));

            if (_quantizationConfiguration == null)
            {
                _quantizationConfiguration = new QuantizationConfiguration();
            }

            _quantizationConfiguration.ConfigureOptions(configure);

            return(this);
        }
コード例 #2
0
        public IImageConfiguration WithoutQuantization()
        {
            _quantizationConfiguration = null;

            return(this);
        }
コード例 #3
0
 private void SetQuantizationConfiguration(IQuantizationConfiguration quantizationConfiguration)
 {
     _quantizationConfiguration = quantizationConfiguration.Clone();
 }