Is there any way to save the part beyond the canvas by canvas to save the picture?

question:
when I save a picture, I get the width and height of the canvas, but this is not what I want, because the part beyond the canvas will be cut off when it is saved as a picture, how to get the true height and width of the object?

Jun.28,2021
Menu