FROM : Shawn Erickson
DATE : Thu Jan 03 18:50:22 2008
On Jan 3, 2008 9:04 AM, Cormac Daly <<email_removed>> wrote:
> theMovieFrame.top = 15;
> theMovieFrame.left = 100;
> theMovieFrame.bottom = (short)i_MovieFrame.size.height;
> theMovieFrame.right = (short)i_MovieFrame.size.width;
One is working in terms of a top left point and bottom right point
while the other is working in terms of an origin and extent (size).
What you are doing above doesn't convert correctly between these two
concepts.
For example if left starts at 100 then right would be 100 + width.
Also you may have to flip the y-axis (not sure if that is needed or not).
-Shawn
DATE : Thu Jan 03 18:50:22 2008
On Jan 3, 2008 9:04 AM, Cormac Daly <<email_removed>> wrote:
> theMovieFrame.top = 15;
> theMovieFrame.left = 100;
> theMovieFrame.bottom = (short)i_MovieFrame.size.height;
> theMovieFrame.right = (short)i_MovieFrame.size.width;
One is working in terms of a top left point and bottom right point
while the other is working in terms of an origin and extent (size).
What you are doing above doesn't convert correctly between these two
concepts.
For example if left starts at 100 then right would be 100 + width.
Also you may have to flip the y-axis (not sure if that is needed or not).
-Shawn
| Related mails | Author | Date |
|---|---|---|
| Cormac Daly | Jan 3, 18:04 | |
| Shawn Erickson | Jan 3, 18:50 | |
| eblugamma | Jan 3, 20:19 |






Cocoa mail archive

