mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
42 lines
1 KiB
C#
42 lines
1 KiB
C#
using FFMpegCore.FFMPEG.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FFMpegCore.FFMPEG.Argument
|
|
{
|
|
/// <summary>
|
|
/// Represents scale parameter
|
|
/// </summary>
|
|
public class ScaleArgument : Argument<Size>
|
|
{
|
|
public ScaleArgument()
|
|
{
|
|
}
|
|
|
|
public ScaleArgument(Size value) : base(value)
|
|
{
|
|
}
|
|
|
|
public ScaleArgument(int width, int heignt) : base(new Size(width, heignt))
|
|
{
|
|
}
|
|
|
|
public ScaleArgument(VideoSize videosize)
|
|
{
|
|
Value = videosize == VideoSize.Original ? new Size(-1, -1) : new Size(-1, (int)videosize);
|
|
}
|
|
|
|
/// <summary>
|
|
/// String representation of the argument
|
|
/// </summary>
|
|
/// <returns>String representation of the argument</returns>
|
|
public override string GetStringValue()
|
|
{
|
|
return ArgumentStringifier.Scale(Value);
|
|
}
|
|
}
|
|
}
|