FROM : eblugamma
DATE : Thu Jan 03 20:19:43 2008
> Date: Thu, 3 Jan 2008 17:04:03 +0000
> From: Cormac Daly <<email_removed>>
> ...
> theMovieFrame.top = 15;
> theMovieFrame.left = 100;
> theMovieFrame.bottom = (short)i_MovieFrame.size.height;
> theMovieFrame.right = (short)i_MovieFrame.size.width;
Cormac,
you seem to have misunderstood the geometry of the Rect structure
Quicktime expects.
while you haver appropriate values in the "top" and "left", your not
right in the "bottom" and the "right"
lets take a second and look at the docs to see why...
bottom
The vertical coordinate of the lower-right point of the rectangle.
right
The horizontal coordinate of the lower-right point of the rectangle.
those coordinates should be... the dimension Plus the offset!
so for "right" you need "left" + "width"
and for "bottom" its "top" + "height"
good luck,
-eblu
DATE : Thu Jan 03 20:19:43 2008
> Date: Thu, 3 Jan 2008 17:04:03 +0000
> From: Cormac Daly <<email_removed>>
> ...
> theMovieFrame.top = 15;
> theMovieFrame.left = 100;
> theMovieFrame.bottom = (short)i_MovieFrame.size.height;
> theMovieFrame.right = (short)i_MovieFrame.size.width;
Cormac,
you seem to have misunderstood the geometry of the Rect structure
Quicktime expects.
while you haver appropriate values in the "top" and "left", your not
right in the "bottom" and the "right"
lets take a second and look at the docs to see why...
bottom
The vertical coordinate of the lower-right point of the rectangle.
right
The horizontal coordinate of the lower-right point of the rectangle.
those coordinates should be... the dimension Plus the offset!
so for "right" you need "left" + "width"
and for "bottom" its "top" + "height"
good luck,
-eblu
| Related mails | Author | Date |
|---|---|---|
| Cormac Daly | Jan 3, 18:04 | |
| Shawn Erickson | Jan 3, 18:50 | |
| eblugamma | Jan 3, 20:19 |






Cocoa mail archive

