PDA

View Full Version : Aspect ratio in GKnot


stax76
7th August 2002, 11:30
does anybody know how GKnot calculates the aspect ratio, I compared DVX to Gordian Knot, DVX shows 2,35 like on the DVD box, but GKnot shows 2,44

this is the code used in DVX

Dim CropWidth As Double = Global.SourceWidth - Global.CropLeft - Global.CropRight
Dim CropHeight As Double = Global.SourceHeight - Global.CropTop - Global.CropBottom

txtRatio.Text = Math.Round((4 / 100 * (CropWidth / Global.SourceWidth * 100)) / (3 / 100 * (CropHeight / Global.SourceHeight * 100)), 2).ToString

If Global.IsRatio169 Then txtRatio.Text = Math.Round((16 / 100 * (CropWidth / Global.SourceWidth * 100)) / (9 / 100 * (CropHeight / Global.SourceHeight * 100)), 2).ToString