The second scenario in this sample shows the release and retain functionality. When an application gets a request to release its exclusive claim to the barcode scanner, it must handle the request by retaining the device otherwise, it will lose its claim. Uses DataReceived and ReleaseDeviceRequested events. Uses ClaimScannerAsync to claim the device. To enumerate and select the first barcode scanner.Ĭlaim the barcode scanner for exclusive use The samples collection, and GitHub, see Get the UWP samples from GitHub.įor more samples, see the Samples portal on the Windows Dev Center. For more info on working with the ZIP file, Sure to unzip everything to access shared dependencies. Or you can download the entire collection as a single You can download this sample as a standalone ZIP file Note: This sample is part of a large collection of UWP feature samples. Select Scan at the bottom of the screen to scan your document or picture.Īfter your scan is finished, select View to see the scanned file before you save it, or select Close to save it. You can edit the scanned document or picture in the preview that appears when you select View.Shows how to obtain a barcode scanner, claim it for exclusive use, enable it to receive data, and read a barcode. Under Save file to, browse to the location where you want to save the scan. Select Show more to show the Save file to options. For example, you can save the file in different file formats-such as JPEG, Bitmap, and PNG. Under File type, select the type of file you want the scan to be saved as. Under Source, select the location you prefer to scan from. Under Scanner, select the scanner you want to use. Place the item you want to scan in the scanner's document feeder. Place the item you want to scan face down on the scanner's flatbed and close the cover. In the search box on the taskbar, type Windows Scan, and then select Scan from the results. Note: Need to install the Windows Scan app? You can get the app at Microsoft Store.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |