Capture images in Hypermesh with Image size

Hi,
Hypermesh has an API '*jpegfilenamed' to capture images. But, with this I am not able to control the size of the images. Is there any way to achieve this?
In Hyperview, we have an API ' CaptureScreenToSize' that enables us to capture images with different sizes. I am looking for a similar option in Hypermesh.
Thanks

Thanks tinh.
This is a useful code where I can control the area of the screen that I want to capture.
Actually, I want to capture the entire HM graphics screen and then control the size of the resulting image. So, anyway I can do that?

No, I dont want to zoom.
Say, if my '*jpegfilenamed' API captures image with size 1162*722. I want the same image to be resized to 722*722, so that I can easily populate them in my Powerpoint presentations.

Well, I don't want to crop the image. Instead, I want the entire image to be resized.
Something like this...

Thanks tinh,
This should help.. /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
Hi,