vb.net - CameraCaptureUI Save picture at specified location -



vb.net - CameraCaptureUI Save picture at specified location -

i using cameracaptureui api take image on windows tablet. can take picture, have no thought saved or how alter it's save folder.

i have tried doing next code save in image library without success : dim filecopy storagefile = await file.copyasync(knownfolders.pictureslibrary, "mynicephoto.bmp", namecollisionoption.replaceexisting)

here code utilize take image (taken cameracaptureui sample)

private appsettings windows.foundation.collections.ipropertyset private const photokey string = "capturedphoto" seek ' using windows.media.capture.cameracaptureui api capture photo dim dialog new cameracaptureui() dim aspectratio new size(16, 9) dialog.photosettings.croppedaspectratio = aspectratio dim file storagefile = await dialog.capturefileasync(cameracaptureuimode.photo) if file isnot nil dim bitmapimage new bitmapimage() using filestream irandomaccessstream = await file.openasync(fileaccessmode.read) bitmapimage.setsource(filestream) end using ' store file path in application info appsettings(photokey) = file.path end if grab ex exception end seek

using code image getting saved somewhere ?

if thought ?

how can alter save location ?

i'm not 100% sure after, might help:

dim savediag new pickers.folderpicker dim destfolder windows.storage.storagefolder = await savediag.picksinglefolderasync await file.moveasync(destfolder)

vb.net image windows-store-apps

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -