English 中文(简体)
以 WPF 变换视野
原标题:Perspective transform with WPF
  • 时间:2012-05-23 07:46:16
  •  标签:
  • c#
  • wpf
  • 3d
  • 2d

WPF 允许在图形对象上指定线形形形变形。 您可以以此进行翻译、 旋转、 缩放、 倾斜或组合。 您可以指定 2x3 矩阵 。

我想做的是 2D 空间的视角变换, 这需要一个 3x3 矩阵, 并来自 Photoshop 或 GIMP, 您可以独立拖动图像的所有 4 个角落 。

我试图使用 WPF 的 3D 特性, 设置了 < code> Viewport3D , < code> Arphethlogic Cameera , 并将天体(2D) 放置在x- plane上。

但是,我想问一下,是否有更简单的方法可以实现WPF转变的观点呢?

我问也是因为我喜欢对文本进行视图转换: 在 2D I 中, 您可以使用 < code> TextBlock , 在 3D 中, 3D 会更精确, 我必须要从 < code> Geophasy 中创建 < code> brush , 出自 < code> formatedText 。

最佳回答

https://groups.google.com/group/wpf-disciples/browse_thread/thread/6672e591b23a7589" rel=“nofollow”>在这里读到 ,这里有一些三党图书馆为 WPF 执行银灯 S Plane Projection 。

否则您将被迫自己编码。 (也许微软将在未来版本的.NET中添加 Plane Projection)

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签