1

objc ビデオ プレーヤーのサンプルを MonoTouch に変換したところ、次の部分にたどり着きました。

self.view.layer.sublayerTransform = CATransform3DMakePerspective(1000); 

Monotouch では、「スケール」または「回転」変換を行うことができます。

this.View.Layer.SublayerTransform = CATransform3D.MakeScale(1.0f, -1.0f, 1.0f);

ただし、オブジェクト ブラウザで検索した後でも、パースペクティブ オプションは表示されません。これは、私がどこかで読んだ API の「キュレーション」の一部であり、使用頻度の低いアイテムは MonoTouch に持ち込まれませんか?

この機能をどのように使用しますか? このようにメンバーが行方不明になることはよくあることですか? 自動化されたツールがバインディングを生成したと思ったので、冗長または非推奨でない限り、すべての要素が利用可能になると考えていました.

4

1 に答える 1

3

I can't find a function named CATransform3DMakePerspective in Apple documentation web site (nor did grepping the Apple SDK headers files returned it).

note: please edit your post if you have an URL pointing to it's documentation

A bit of googling returned a macro:

#define CATransform3DMakePerspective(x, y) (CATransform3DPerspective(CATransform3DIdentity, x, y))

that depends on another macro CATransform3DPerspective and a C function CATransform3DMake. Each of them looks trivial to port to C#.

This might not be identical to the ObjC sample you're porting. OTOH the code of your video player should include similar functions that you can translate into C#.

于 2012-09-03T14:15:39.173 に答える