Files
PDFPatcher/App/Model/CoordinateTranslationSettings.cs
T
2022-01-06 09:08:16 +08:00

30 lines
778 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace PDFPatcher.Model
{
internal sealed class CoordinateTranslationSettings
{
internal float XScale { get; set; }
internal float YScale { get; set; }
internal float XTranslation { get; set; }
internal float YTranslation { get; set; }
public CoordinateTranslationSettings() {
XScale = YScale = 1;
}
public CoordinateTranslationSettings(float xScale, float yScale, float xTranslation, float yTranslation) {
XScale = xScale;
YScale = yScale;
XTranslation = xTranslation;
YTranslation = yTranslation;
}
internal iTextSharp.text.pdf.parser.Matrix GetMatrix() {
return new iTextSharp.text.pdf.parser.Matrix(XScale, 0, 0, YScale, XTranslation, YTranslation);
}
}
}