我正在开发一个转由turn导航软件为Windows Mobile使用C#和.NET CF.我能画线绘制2D地图。我的问题是我想获得一个2.5D地图一样的图片。我尝试了2D渲染的图像上的非仿射变换,但它是我们的目标是在Windows Mobile设备太慢。谁能给我一个线索对我的问题?
I'm developing a turn-by-turn navigation software for Windows Mobile using C# and .NET CF. I'm able to draw a 2D maps by drawing lines. My problem is I would like to get a 2.5D map like in the picture. I tried non-affine transformation on the 2D rendered image but it is too slow for the Windows Mobile device we are targeting. Could anyone give me a clue on my problem?
使用透视转换,因为它会直接映射线直线。在this回答。
Use a perspective transformation, because it will map straight lines to straight lines. More details in this answer.