{"title":"CameraOptions overview","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-camera-options/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-camera-options, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-camera-options","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn about the CameraOptions that you can pass to RequestPictureAsync in AL, including picture quality, source type, media type, and encoding type.","date":"2026-08-24","meta":{"topic":"overview"},"outline":[{"level":1,"title":"CameraOptions overview","slug":"cameraoptions-overview","at":0,"chars":1551},{"level":2,"title":"CameraOptions","slug":"cameraoptions","at":507,"chars":995},{"level":2,"title":"Related information","slug":"related-information","at":1502,"chars":49}],"text":"# CameraOptions overview\nWhen you implement camera access from AL, you can use Microsoft.Dynamics.Nav.Client.Capabilities.CameraOptions, which is found in the Microsoft.Dynamics.Nav.ClientExtensions DLL, to specify picture quality, source type, and so on. You can optionally pass these options to `CameraProvider.RequestPictureAsync(options)`. Some of the options described in this article are implemented in the example in devenv-implement-camera-al.\nFor most scenarios, you don't need to specify options.\n## CameraOptions\nOption|Description\n`int Quality`|The quality of the saved image expressed as a range from 0 to 100, where 100 is typically full resolution without loss from file compression. Default is 50. If you call RequestPictureAsync without a CameraOptions object, the client uses 100. Quality is only used if EncodingType is JPEG.\n`string SourceType`|The source of the picture. Possible values are Camera and PhotoLibrary. Default is Camera. The options Quality, EncodingType, and AllowEdit are only used if SourceType is Camera.\n`string MediaType`|The type of media to select from. The SourceType option must be PhotoLibrary. Possible values are Picture, Video, and AllMedia. The PhotoLibrary option picks an existing picture on the device.\n`string EncodingType`|The encoding of the returned image file. Supported values are as follows: JPEG, PNG. Default is JPEG.\n`bool AllowEdit`|A value that indicates whether to enable simple editing of the image before selection. Default is false.\n## Related information\ndevenv-implement-camera-al"}