Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
0 Votes
3 Replies
Answered

image resize

Question asked by Roelof Koelewijn on Feb 22, 2017 06:07 EST

Hi, I'm trying to find a way to resize captured images from the camera widget in code. I know there are functions in 7.2 to compress and scale images. But I'm wondering if it is possible to resize the image to a certain width and height. For example the captured image on an iPhone is: 3264x2448 and I want to resize this to 800x600. Does anyone know ho to achieve this?

Kony Answered Certificate
Vote up!
0 votes
Vote down!

Hi Roelof,

You can use the maxSideOfTheImage camera property to control the size of the image, please check the below link for more details about the property

http://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Default.htm#Camera_Properties.htm#maxSideO%3FTocPath%3DReference%7CCamera%2520Widget%7CProperties%7C_____31

Thanks

Answered by: Feb 23, 2017 00:13 EST
Bronze
Vote up!
0 votes
Vote down!

ok, I will try that.

But is there no way to do it after the picture is taken?

Replied by: Feb 27, 2017 06:00 EST
Vote up!
0 votes
Vote down!

thank you this is working

Replied by: Mar 02, 2017 06:57 EST