mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-01-17 01:20:22 -05:00
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: DieselTech <30128380+DieselTech@users.noreply.github.com> Co-authored-by: Alex George <xzeroknightx@gmail.com> Co-authored-by: Lucas Winther <lucasw89@live.dk> Co-authored-by: Toni Kielo <toni.kielo@gmail.com> Co-authored-by: Patrick Orave <oravep@gmail.com>
16 lines
428 B
C#
16 lines
428 B
C#
namespace API.Entities.Enums;
|
|
|
|
public static class PdfRenderResolutionExtensions
|
|
{
|
|
public static (int dim1, int dim2) GetDimensions(this PdfRenderResolution size)
|
|
{
|
|
return size switch
|
|
{
|
|
PdfRenderResolution.Default => (1080, 1920),
|
|
PdfRenderResolution.High => (1920, 2560),
|
|
PdfRenderResolution.Ultra => (2160, 3840),
|
|
_ => (1080, 1920)
|
|
};
|
|
}
|
|
}
|