ADC Home > Reference Library > Technical Q&As > QuickTime > Movie Basics >

Setting a Movie's Clipping Region

Q Our application uses the movie poster as a still frame in a cell (similar to using a PICT). If a user sizes the cell width so that it's narrower than the poster, QuickTime posters are drawn full width, writing over whatever is in the way, even though we clip the drawing to the cell size. Since Pictures clip through DrawPicture, why doesn't ShowMoviePoster stay within the clipping region?

A ShowMoviePoster and the movie- and preview-showing calls use the movie clipping characteristics rather than the destination port's clipping region. You must set the movie's clipping region to obtain the results you want. You can accomplish the same thing by getting the picture for the poster by calling GetMoviePosterPict and using DrawPicture to display the poster. Because this is just a picture, the clipping region of the port is honored, so you don't need different code for movies and pictures.

[May 01 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.