Hello everyone,
I used this code to adjust the size and the position of an image taken from camera:
local onComplete = function(event)
local photo = event.target
photo.x = 745;
photo.y = 380;
photo.xScale = 0.07;
photo.yScale = 0.07;
guy:remove(head);
guy:insert(photo);
end
if media.hasSource( media.Camera ) then
media.show( media.Camera, onComplete )
else
native.showAlert( “Corona”, “This device does not have a camera.”, { “OK” } )
end
Is it possible replace the image from camera with the same size than the image will be replaced?
Is it posible to adjust different size for back and front camera?
For example:
Front camera: photo.xScale = 1
photo.yScale = 1
Back camera: photo.xScale = 0.5
photo.yScale = 0.5
I will really appreciate your help!
Many Thanks!
