0

I'm making a c# WPF application. Part of this application involves the user moving items around a screen. To do this each item has its own ContentControl and it works really well.

I, now however, need to output the content of these Content Controllers to a bitmap.

I'm creating the bitmap by

Bitmap = new Bitmap(width, height)

but how do I add the content control output?

croxy
  • 4,082
  • 9
  • 28
  • 46
Display Name
  • 1,025
  • 2
  • 15
  • 34

1 Answers1

0

You can use capturescreen to convert your current window to an image:

ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
Bitmap = new Bitmap(img)
Yaser
  • 5,609
  • 1
  • 15
  • 27