有誰知道替換舊的QTMovieCurrentSizeAttribute
和QTMovieSizeDidChangeNotification
任務的正確方法嗎?我正在嘗試清除舊的棄用代碼。我們發現QTMovieNaturalSizeDidChangeNotification
不是QTMovieSizeDidChangeNotification
的替代品。同樣QTMovieNaturalSizeAttribute
不是QTMovieCurrentSizeAttribute
的替代品。 Natural Size
指的是QTMovie
的原始分辨率,而Current Size
指的是顯示QTMovie
時的分辨率(這也可能是電影正在解碼的分辨率,可以從本機重新調整分辨率)。例如,如果源是變形的或者具有非方形像素,則Natural
和Current Size
將不會相同。在QuickTime 7 Player的Movie Inspector窗口中很容易看到不同之處。QTMovieCurrentSizeAttribute和QTMovieSizeDidChangeNotification替換
就我所知,QuickTime X允許將多個視圖放入同一個QTMovie
,因此Current Size
的概念需要被新的東西所取代。 (也許Current Size
功能被移到QTMovieView
?或解碼器查詢?)任何人都可以引用我的文檔或示例代碼的新方法?
已更新爲顯示Natural
和Current ('Actual') Sizes
且未使用棄用代碼的Movie Inspector窗口的任何示例代碼都是理想的。到目前爲止,這已經非常令人困惑。
可能更相關的是在同一個文件'cacheMovieScale',而它與關鍵'無證屬性的定義@「QTMoviePreferredTransformAttribute」',它的值是一個NSAffineTransform。 – 2011-12-30 00:53:03