mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
24 lines
959 B
C#
24 lines
959 B
C#
|
|
// Copyright (c) Brice Lambson
|
|||
|
|
// The Brice Lambson licenses this file to you under the MIT license.
|
|||
|
|
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
using System.Globalization;
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
using System.Windows.Media.Imaging;
|
|||
|
|
using ImageResizer.Properties;
|
|||
|
|
|
|||
|
|
namespace ImageResizer.Views
|
|||
|
|
{
|
|||
|
|
[ValueConversion(typeof(TiffCompressOption), typeof(string))]
|
|||
|
|
internal class TiffCompressOptionConverter : IValueConverter
|
|||
|
|
{
|
|||
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|||
|
|
=> Resources.ResourceManager.GetString(
|
|||
|
|
"TiffCompressOption_" + Enum.GetName(typeof(TiffCompressOption), value));
|
|||
|
|
|
|||
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|||
|
|
=> throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
}
|