Further to my earlier problems with movie buttons, I've noticed the problem with button shapes doesn't seem to be resolvable. When a movie button doesn't have the same aspect ratio as the movie, the movie within the button is shrunk to preserve the original aspect ratio rather than cropped to fit the button. This happens even though the "Keep aspect ratio" of the movie properties is not checked.
If I adjust the Zoom to give the movie button the correct height (on a button that is narrower than the movie), the movie simply spills out over the button's boundaries. While I appreciate qdvdauthor's ability to provide movie buttons, and I usually try to make them with the same aspect ratio as the movie, there are times when I'd prefer to use a different ratio. Can you modify qdvdauthor's menu making routine to accommodate this? The algorithm I'd suggest is to calculate the horizontal and vertical zooms and use the largest. Multiply this by other dimension's movie size and take the difference from the button size. Crop the movie on both sides (or top and bottom) by half the amount. vzoom := vbsize / vmsize; hzoom := hbsize / hmsize; zoom := max(vzoom, hzoom); hcrop := int((zoom * hmsize - hbsize) / 2); vcrop := int((zoom * vmsize - vbsize) / 2); I suspect that you are already doing something very similar to the first two lines anyway - but taking the smaller zoom instead of the larger - so hopefully adding a crop factor won't be difficult. Thanks for a great program! ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ QDVDAuthor-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users
