Add optional hardware acceleration to RenderTargetBitmap
-
14-10-2019 - |
Pergunta
Is there an alternative to RenderTargetBitmap that can produce an image to be used with Image.Source & is hardware accelerated in .NET 3.5 sp1? Answers for .NET 4.0 are fine but I may not be able to use them.
People should vote for this if they find it would be helpful... like me.
Solução
Have you looked at BitmapCacheBrush
That class is hardware accelerated (runs on the GPU) and can be used like any other brush (just create a Rectangle and set its Fill property to the brush).
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow