Silverlight animation performance
9075 단어 silverlight
Desired Frame Rate
Configure in the WEB project:
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2,"
type="application/x-silverlight-2" width="100%" height="100%">
<param name="maxFramerate" value="15" />
...
</object>
<iframe style="visibility:hidden;height:0;width:0;border:0px"></iframe>
</div>
Hardware Acceleration<object data="data:application/x-silverlight-2,"
type="application/x-silverlight-2" width="100%" height="100%">
<param name="enableGPUAcceleration" value="true" />
<param name="enableCacheVisualization" value="true" />
<param name="enableFrameRateCounter" value="true" />
Bitmap Caching <Canvas>
<Image x:Name="img" Source="phone_booth.jpg" Stretch="None" CacheMode="BitmapCache">
<Image.RenderTransform>
<RotateTransform x:Name="rotateTransform"></RotateTransform>
</Image.RenderTransform>
</Image>
<Button x:Name="cmd" Content="I GROW and SHRINK." Canvas.Top="70" Canvas.Left="10" CacheMode="BitmapCache">
<Button.RenderTransform>
<ScaleTransform x:Name="scaleTransform"></ScaleTransform>
</Button.RenderTransform>
</Button>
</Canvas>
The animation object also needs to be set<Button x:Name="cmd" Content="I GROW and SHRINK." Canvas.Top="70" Canvas.Left="10">
<Button.CacheMode> <BitmapCache RenderAtScale="5"></BitmapCache> </Button.CacheMode>
<Button.RenderTransform>
<ScaleTransform x:Name="scaleTransform"></ScaleTransform>
</Button.RenderTransform>
</Button>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Silverlight animation performanceAnimation performance can be improved with several configurations: Desired Frame Rate Configure in the WEB project: Hard...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.