-
In my app I need the ability to take a screenshot, but I am unable figure out way how to do it. Is there some other way to do it? or perhaps a way to directly access the last rendered frame? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The only important part is RenderTargetBitmap, which is still public. var pixelSize = new PixelSize((int)target.Width, (int)target.Height);
var size = new Size(target.Width, target.Height);
var dpiVector = new Vector(dpi, dpi);
using (RenderTargetBitmap bitmap = new RenderTargetBitmap(pixelSize, dpiVector))
{
target.Measure(size);
target.Arrange(new Rect(size));
bitmap.Render(target);
bitmap.Save(immediatePath);
}
No. |
Beta Was this translation helpful? Give feedback.
The only important part is RenderTargetBitmap, which is still public.
No.