Experience10  Creative, Develop, UX, Wireframe, Productivity

Silverlight 3 PlaneProjection参数详解

PlaneProjection帮助我们对图形及图像视频对象进行透视变形的效果处理,一个典型的PlaneProjection应用的XAML参数如下所示


            

            
        

对于PlaneProjection的操作主要是旋转(Rotation)和位移(Offset)

对于旋转RotationXYZ来说比较容易理解,主要空间关系如下图所示:

PlaneProjectionXYZ

CenterOfRotationX,Y,Z的默认值是x=0.5 y=0.5 z=0,其中xy分别为0表示图形左上角,为1表示图像右下角,0-1实际上是图形宽高的百分比关系,可以超过1,那样坐标轴心点将在图象之外。Z轴根据现阶段的应用来看,是一个象素级单位,其变化关系可以如下图所示:

PlaneProjectCenterOfRotationXYZ

LocalOffsetX,Y,Z和GlobalOffsetX,Y,Z用来移动图形的位置,其中LocalOffset以图形自身的坐标系为坐轴系统来移动,也就是说如果图象被旋转,那么他自身的坐标系与屏幕将发生改变。而GlobalOffset将永远以屏幕的坐标系为坐标系统来移动图形,不受图形自身旋转或位置变化而产生影响。

This entry was written by allan, posted on April 28, 2009 at 1:06 pm, filed under Silverlight. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Timeline

Have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.


Copyright 2010 Experience10.com
Designed by Allan