Lines Matching refs:photo
5 This topic provides sample code that covers the complete photo capture process to help you understa…
11 After obtaining the output stream capabilities supported by the camera, create a photo stream. The …
33 …// After the callback is set, call capture() of photoOutput to transfer the photo buffer back to t…
34 photoOutput.on('photoAvailable', (errCode: BusinessError, photo: camera.Photo): void => {
37 if (errCode || photo === undefined) {
41 let imageObj = photo.main;
58 …plete, the buffer must be released. Otherwise, no buffer is available for subsequent photo capture.
120 console.error('photo mode not support');
157 // Create a photo output stream.
212 // Add the photo output stream to the session.
297 quality: camera.QualityLevel.QUALITY_LEVEL_HIGH, // Set the photo quality to high.
298 rotation: camera.ImageRotation.ROTATION_0 // Set the rotation angle of the photo to 0.
300 // Use the current photo capture settings to take photos.
303 console.error(`Failed to capture the photo ${err.message}`);
306 console.info('Callback invoked to indicate the photo capture request success.');
309 …er the photo capture is complete, call the following APIs to close the camera and release the sess…
319 // Release the photo output stream.