Saturday, September 24, 2022
HomeiOS Developmentc# - .NET MAUI Utilizing full digicam decision

c# – .NET MAUI Utilizing full digicam decision


Does anyone know the right way to use the complete decision of the iPhone’s digicam when taking photographs and/or movies in a .NET MAUI app. Beneath is the code im utilizing to take a video after which save that file to the filesystem. However the after reviewing the video it’s definetly not even near the complete high quality that the digicam presents. It additionally shows very low decision within the viewport.

FileResult video = await MediaPicker.Default.CaptureVideoAsync();
if (video != null)
{
    // save the file into native storage
    string localFilePath = Path.Mix(FileSystem.CacheDirectory, video.FileName);

    utilizing Stream sourceStream = await video.OpenReadAsync();

    utilizing FileStream localFileStream = File.OpenWrite(localFilePath);

    await sourceStream.CopyToAsync(localFileStream);
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

17 − 6 =

Most Popular

Recent Comments