Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: How to draw text in WPF without WriteableBitmap constructor that takes UIElement parameter?

$
0
0
(After giving up then coming back) I found some references that provided 2 key points regarding the RenderTargetBitmap object to avoid the memory leak and subsequent crash:
  1. Freeze() the object after Rendering the Visual (RenderTargetBitmap.Freeze())
  2. Explicitly Clear (RenderTargetBitmap.Clear()) and null the object after blitting it
I seem to be back in business for cases that require text rendering.

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>