How to change the Aspect ratio of a QTMovie

Discussion in 'Mac Programming' started by sabharwal81, Jul 20, 2010.

  1. sabharwal81 macrumors newbie

    Joined:
    Aug 25, 2009
    #1
    I have a QTMovie (added as a layer to NSView) like this

    QTMovie *mMovie = [QTMovie movieWithFile:pathName error: &myErr];
    QTMovieLayer *movieLayer = [QTMovieLayer layerWithMovie:mMovie];
    [basketView setLayer:movieLayer]; // basketView is an NSView.

    Now how do i change the aspect ratio to say 5:3, 16:9, 16:10 etc.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You could try playing with the layer's contentsGravity property and adjusting the frame to be of the ratio you want.
     

Share This Page