向RenderTargetBitmap添加可选的硬件加速

时间:2010-12-30 20:01:04

标签: wpf silverlight hardware acceleration rendertargetbitmap

是否有替代RenderTargetBitmap可以生成与Image.Source&amp ;;一起使用的图像。是.NET 3.5 sp1中的硬件加速? .NET 4.0的答案很好,但我可能无法使用它们。

如果人们发现它会对我有帮助,那么人们应该为此投票。

http://dotnet.uservoice.com/forums/40583-wpf-feature-suggestions/suggestions/1303525-add-optional-hardware-acceleration-to-rendertarget

1 个答案:

答案 0 :(得分:5)

你看过BitmapCacheBrush

吗?

该类是硬件加速的(在GPU上运行),可以像任何其他画笔一样使用(只需创建一个Rectangle并将其Fill属性设置为画笔)。