add Programmyday form github
This commit is contained in:
30
E-Book/Video.cs
Normal file
30
E-Book/Video.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace E_Book
|
||||
{
|
||||
internal class Video : MediaAssets
|
||||
{
|
||||
private decimal pixelWidth;
|
||||
private decimal pixelHeight;
|
||||
private decimal aspectraiton;
|
||||
public Video(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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user