Features.BitExact.setPropotion C# (CSharp) Method

setPropotion() private method

private setPropotion ( ) : void
return void
        private void setPropotion()
        {
            for (int i = 0; i < numImages; i++)
            {
                double p = images[i].Height / images[i].Width;
                if (checkPropotion(p, 9 / 16))
                    propotions[i] = Propotion.p9_16;
                else if (checkPropotion(p, 16 / 9))
                    propotions[i] = Propotion.p16_9;
                else if (checkPropotion(p, 3 / 4))
                    propotions[i] = Propotion.p3_4;
                else if (checkPropotion(p, 4/3))
                    propotions[i] = Propotion.p4_3;
                else
                    propotions[i] = Propotion.pOther;

            }
        }