2

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

如果人们发现它会有所帮助,他们应该投票赞成......就像我一样。

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

4

1 回答 1

5

你看过BitmapCacheBrush吗

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

于 2011-01-01T00:45:28.393 回答