/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/imageresizer/ui/Models/CustomSize.cs
34 строки
943 B
moooyo
Migrate ImageResizer to WinUI3 (#45288)
01 апр 2026, 11:22
Не верифицирован
01 апр 2026, 11:22
ac28b1c
Код
Авторство
О чём код?
#pragma warning disable IDE0073, SA1636 // 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/ #pragma warning restore IDE0073, SA1636 using System.Text.Json.Serialization; using ImageResizer.Helpers; namespace ImageResizer.Models { public class CustomSize : ResizeSize { [JsonIgnore] public override string Name { get => ResourceLoaderInstance.GetString("Input_Custom"); set { /* no-op */ } } [JsonConstructor] public CustomSize(ResizeFit fit, double width, double height, ResizeUnit unit) { Fit = fit; Width = width; Height = height; Unit = unit; } public CustomSize() { } } }