Exemple #1
0
        private static void SetQualityParams(ThumbQuality quality_)
        {
            switch (quality_)
            {
            case ThumbQuality.fastest:
                _currentCompositingQuality = CompositingQuality.HighSpeed;
                _currentInterpolationMode  = InterpolationMode.NearestNeighbor;
                _currentSmoothingMode      = SmoothingMode.None;
                _currentThumbSize          = ThumbSize.small;
                _currentLargeThumbSize     = LargeThumbSize.small;
                break;

            case ThumbQuality.fast:
                _currentCompositingQuality = CompositingQuality.HighSpeed;
                _currentInterpolationMode  = InterpolationMode.Low;
                _currentSmoothingMode      = SmoothingMode.HighSpeed;
                _currentThumbSize          = ThumbSize.small;
                _currentLargeThumbSize     = LargeThumbSize.small;
                break;

            case ThumbQuality.higher:
                _currentCompositingQuality = CompositingQuality.AssumeLinear;
                _currentInterpolationMode  = InterpolationMode.High;
                _currentSmoothingMode      = SmoothingMode.HighQuality;
                _currentThumbSize          = ThumbSize.average;
                _currentLargeThumbSize     = LargeThumbSize.average;
                break;

            case ThumbQuality.highest:
                _currentCompositingQuality = CompositingQuality.HighQuality;
                _currentInterpolationMode  = InterpolationMode.HighQualityBicubic;
                _currentSmoothingMode      = SmoothingMode.HighQuality;
                _currentThumbSize          = ThumbSize.large;
                _currentLargeThumbSize     = LargeThumbSize.large;
                break;

            case ThumbQuality.uhd:
                _currentCompositingQuality = CompositingQuality.HighQuality;
                _currentInterpolationMode  = InterpolationMode.HighQualityBicubic;
                _currentSmoothingMode      = SmoothingMode.HighQuality;
                _currentThumbSize          = ThumbSize.uhd;
                _currentLargeThumbSize     = LargeThumbSize.uhd;
                break;

            default:
                _currentCompositingQuality = CompositingQuality.Default;
                _currentInterpolationMode  = InterpolationMode.Default;
                _currentSmoothingMode      = SmoothingMode.Default;
                _currentThumbSize          = ThumbSize.average;
                _currentLargeThumbSize     = LargeThumbSize.average;
                break;
            }
        }
Exemple #2
0
    private static void SetQualityParams(ThumbQuality quality_)
    {
      switch (quality_)
      {
        case ThumbQuality.fastest:
          _currentCompositingQuality = CompositingQuality.HighSpeed;
          _currentInterpolationMode = InterpolationMode.NearestNeighbor;
          _currentSmoothingMode = SmoothingMode.None;
          _currentThumbSize = ThumbSize.small;
          _currentLargeThumbSize = LargeThumbSize.small;
          break;

        case ThumbQuality.fast:
          _currentCompositingQuality = CompositingQuality.HighSpeed;
          _currentInterpolationMode = InterpolationMode.Low;
          _currentSmoothingMode = SmoothingMode.HighSpeed;
          _currentThumbSize = ThumbSize.small;
          _currentLargeThumbSize = LargeThumbSize.small;
          break;

        case ThumbQuality.higher:
          _currentCompositingQuality = CompositingQuality.AssumeLinear;
          _currentInterpolationMode = InterpolationMode.High;
          _currentSmoothingMode = SmoothingMode.HighQuality;
          _currentThumbSize = ThumbSize.average;
          _currentLargeThumbSize = LargeThumbSize.average;
          break;

        case ThumbQuality.highest:
          _currentCompositingQuality = CompositingQuality.HighQuality;
          _currentInterpolationMode = InterpolationMode.HighQualityBicubic;
          _currentSmoothingMode = SmoothingMode.HighQuality;
          _currentThumbSize = ThumbSize.large;
          _currentLargeThumbSize = LargeThumbSize.large;
          break;

        case ThumbQuality.uhd:
          _currentCompositingQuality = CompositingQuality.HighQuality;
          _currentInterpolationMode = InterpolationMode.HighQualityBicubic;
          _currentSmoothingMode = SmoothingMode.HighQuality;
          _currentThumbSize = ThumbSize.uhd;
          _currentLargeThumbSize = LargeThumbSize.uhd;
          break;

        default:
          _currentCompositingQuality = CompositingQuality.Default;
          _currentInterpolationMode = InterpolationMode.Default;
          _currentSmoothingMode = SmoothingMode.Default;
          _currentThumbSize = ThumbSize.average;
          _currentLargeThumbSize = LargeThumbSize.average;
          break;
      }
    }