Hi,
I just found this awesome video regarding working with Camera filters however I found out that
object.fill = { type="camera" }
does not work with Android
–https://www.youtube.com/watch?v=gxMXOrCoMcI
–https://github.com/coronalabs/camerafill-samples/blob/master/CameraFillFilters/main.lua
I tried this code but it takes me directly to the Android camera,
local function onPhotoComplete( event ) if ( event.completed ) then local photo = event.target local s = display.contentHeight / photo.height photo:scale( s,s ) print( "photo w,h = " .. photo.width .. "," .. photo.height ) end end if ( media.hasSource( media.Camera ) ) then media.capturePhoto( { listener = onPhotoComplete } ) else native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end media.capturePhoto( { listener = onPhotoComplete, destination = { baseDir = system.TemporaryDirectory, filename = "myImage.jpg", type = "image" } })
how I can fill an object with what the camera is capturing and take a picture with the effects
would this be a screencapture ??