On Fri, Jul 13, 2012 at 11:00 AM, Ricardo Franco <[email protected]>wrote:

> Hi, I have a surface where a play a movie:
>
> background = pygame.Surface((640, 480))
> video = pygame.movie.Movie('video.mpg')
> video.set_display(background)
> video.play()
>
> And I have a black-white surface to use as mask:
>
> mask = pygame.image.load('mask.png')
>
> I want to 'crop' the video. Dont know if have to blit the video in the
> mask, or the reverse. Or to merge both into a new surface.
> How do it?
>
The simplest possible way I can think of is to draw the video to an
intermediary surface, then blit only a rectangle of that intermediary
surface to your destination.

Reply via email to