Change size of display.save() image

Hello, I was wondering it if is possible to specify the size or scale of an image that is captured using display.save()?  The docs say that the image size is dependent on if you have content scaling on (which I do).  However I still need to be able to save the image at half its size.  Is this possible?

hi,

I did something like this once.

I scaled down the group that I wanted to save, set its coordinates and the boundary accordingly take the screenshot with captureBounds, saved it with display.save and scaled everything up again.

It worked even without a timer.

Since the content scaling is variable (depending on the device), just scaling by 0.5 will also give variable results for the size. You could scale using display.contentScaleX and Y though to get a specific size.

Depending on which capture API you are using, you might notice some edge artifacts though (if the final dimensions aren’t a multiple of 4 pixels).

If you just want to change the image’s size ,you can simply create an imaging SDK,which can save image and change size or zoom in and out.That would make your work easier.

hi,

I did something like this once.

I scaled down the group that I wanted to save, set its coordinates and the boundary accordingly take the screenshot with captureBounds, saved it with display.save and scaled everything up again.

It worked even without a timer.

Since the content scaling is variable (depending on the device), just scaling by 0.5 will also give variable results for the size. You could scale using display.contentScaleX and Y though to get a specific size.

Depending on which capture API you are using, you might notice some edge artifacts though (if the final dimensions aren’t a multiple of 4 pixels).

If you just want to change the image’s size ,you can simply create an imaging SDK,which can save image and change size or zoom in and out.That would make your work easier.