Blend4 中 如何设置图片按自己中心点Y轴 自我旋转?

ymnui1987 2012-07-12 02:53:44
比方说一个地球图片,我现在想让地球图片 以自己中心点Y轴自我旋转,该如何设置?谢谢了。比较急。
...全文
318 7 打赏 收藏 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
[Quote=引用楼主 的回复:]
比方说一个地球图片,我现在想让地球图片 以自己中心点Y轴自我旋转,该如何设置?谢谢了。比较急。
[/Quote]

哪一个是Y轴?
白鸽 2012-07-19
  • 打赏
  • 举报
回复

<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="SilverlightApplication11.MainPage"
Width="800" Height="600">

<Grid Background="White">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="VisualStateGroup">
<VisualState x:Name="VisualState">
<Storyboard>
<DoubleAnimation Duration="0:0:2" To="360" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="ellipse" d:IsOptimized="True"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Ellipse x:Name="ellipse" Margin="249,201,327,167" Fill="#FF314D83">
<Ellipse.Projection>
<PlaneProjection/>
</Ellipse.Projection>
</Ellipse>
</Grid>

</UserControl>


刚刚用Blend画了个,以Y轴旋转的圆形。两秒钟旋转一圈,你可以让动画反复执行就能出现以Y轴旋转的笑过了。

我是用的Ellipse你可以替换成你的Image

试试看!

还有就是有Blend这样的工具!我们就没必要做那种无谓的码农!连代码都不用写就能生成你要的效果不是很快哉!
jv9 2012-07-13
  • 打赏
  • 举报
回复
另外可以参考:

http://www.silverlightchina.net/html/tips/2010/0324/892.html

http://www.silverlightchina.net/html/tips/2010/0620/1300.html
jv9 2012-07-13
  • 打赏
  • 举报
回复
推荐楼主参考这个项目:

http://www.silverlightchina.net/html/tips/2012/0419/15408.html

提供源代码和在线演示:

http://space.silverlightchina.net/ltt147/TTcarousel/Default.html

star250 2012-07-12
  • 打赏
  • 举报
回复
<Image HorizontalAlignment="Left" Height="100" VerticalAlignment="Bottom" Width="100" Source="http://tx.bdimg.com/sys/portrait/item/2c956261696475636f727073706163652b01.jpg" Margin="216,0,0,81" RenderTransformOrigin="0.5,0.5">
<Image.Projection>
<PlaneProjection RotationY="250"/>
</Image.Projection>
<Image.RenderTransform>
<CompositeTransform/>
</Image.RenderTransform>
</Image>
ymnui1987 2012-07-12
  • 打赏
  • 举报
回复
此贴不能沉
ymnui1987 2012-07-12
  • 打赏
  • 举报
回复
来个大侠帮个忙,我是新手···自学真累人

8,757

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧