Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Legacy Documents > QuickTime >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

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]