Hi @crz_06, you might do this using the CaptureToBitmap method and setting SetWindowRect, examples can be found here.
CaptureToBitmap
SetWindowRect
_ c.