Help with SaveSnapshot

MikeGW wrote on 7/16/2005, 2:53 PM
When I use SaveSnapshot, the resolution of the PNG is 290x240. I want the snapshot to be 320x240 (the size of the original footage). The aspect ratio of the project is 0.9091. I use the following commands in the script to temporarily change the aspect ration to 1.000

Vegas.Project.Video.PixelAspectRatio = 1.000;
Vegas.Project.Preview.FullSize = true;
Vegas.UpdateUI();

Then I use....

Vegas.SaveSnapshot(imageFileName, imageFormat, Vegas.Cursor)

When the snapshot is saved, it is still 290x240. However, when I check the project aspect ratio, the script did set it to 1.000 from 0.9091. Also, after running the script, I can manually save a snapshot and it will save it at the dimension that I want of 320x240. How can I get the SaveSnapshot command to save a 320x240 still?

Comments

SonyPJM wrote on 7/20/2005, 9:11 AM
Try setting the preview render quality to best:

Vegas.Project.Preview.RenderQuality = VideoRenderQuality.Best;

If it is left in "Draft" mode, the full size render will not occur.

Other factors that effect the image output (but not image size) are
"Maintain Aspect Ratio" in the event's Pan/Crop settings and the
aspect ratio of the source media... they can leave you
with blank edges in the image.
Vegas - The Big Gamble wrote on 8/16/2005, 3:33 AM
Thanks for this - I had been puzzling over that exact issue for a while!