mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
32 lines
806 B
C#
32 lines
806 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 ImageResizer.Properties;
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
|
|||
|
|
namespace ImageResizer.Models
|
|||
|
|
{
|
|||
|
|
public class CustomSize : ResizeSize
|
|||
|
|
{
|
|||
|
|
[JsonIgnore]
|
|||
|
|
public override string Name
|
|||
|
|
{
|
|||
|
|
get => Resources.Input_Custom;
|
|||
|
|
set { /* no-op */ }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public CustomSize(ResizeFit fit, double width, double height, ResizeUnit unit)
|
|||
|
|
{
|
|||
|
|
Fit = fit;
|
|||
|
|
Width = width;
|
|||
|
|
Height = height;
|
|||
|
|
Unit = unit;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public CustomSize()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|