Files
SammelmappeOOP/E-Book/Picture.cs
2024-07-25 15:47:46 +02:00

31 lines
762 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace E_Book
{
internal class Picture : MediaAssets
{
private decimal pixelWidth;
private decimal pixelHeight;
private decimal aspectraiton;
public Picture(decimal pixelHeight, decimal pixelWidth)
{
this.pixelHeight = pixelHeight;
this.pixelWidth = pixelWidth;
this.aspectraiton = MediaMath.DimensionsMath(this.pixelHeight,this.pixelWidth);
if (this.aspectraiton > 600)
{
this.pageCount = 1;
}
else
{
this.pageCount = 1 / 2;
}
}
}
}