Quote:
Originally Posted by pandy
Code:
nW=INT(fv.Width*(pasr*vasr))
|
This isn't right. It should be:
Code:
nW=round(vd.Width*(vasr/pasr))
Note also that this is only appropriate when vasr <= pasr, ie the photo is narrower than the video. When the photo is wider, you want to add borders on the top and bottom instead of the sides. (Left as an exercise for the reader
)