namespace RolemasterDb.ImportTool;

public sealed class SourceRenderProfile(int renderDpi, int scaleFactor)
{
    public int RenderDpi { get; } = renderDpi;
    public int ScaleFactor { get; } = scaleFactor;

    public int ScaleCoordinate(int value) => checked(value * ScaleFactor);

    public static SourceRenderProfile XmlAligned() =>
        new(PdfXmlExtractor.ScaledRenderDpi, PdfXmlExtractor.RenderScaleFactor);

    public static SourceRenderProfile OcrPixels(int renderDpi) =>
        new(renderDpi, 1);
}
