So I'm creating a UWP app and need to write text and images to an image file and save them. I've currently created a D2D wrapper in C++ using this source and then a C# wrapper that simply lets you access the functions of the C++ class in nice C# [...] read more
I'm trying to save a SoftwareBitmap to a file. But I get error "The parameter is incorrect" when I do: StorageFile.GetFileFromPathAsync() HERE IS THE ERROR...…. enter image description here [https://i.stack.imgur.com/WYXBa.png] pathname = "diag ProcessFrame .JPG" CODE FOR EVENT HANDLER FOR WEBCAM USB FRAME...…… private void FrameReader_FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args) { [...] read more
Due to non-effective BitmapEncoder.FlushAsync() method, I want to get to know if there is other way to save SoftwareBitmap data to stream. My code (a little bit simplified solution) : using (InMemoryRandomAccessStream accessStream = new InMemoryRandomAccessStream()) { BitmapEncoder encoder = await BitmapEncoder.CreateAsync(_inputFormat, accessStream); // Set the software bitmap encoder.SetSoftwareBitmap(input); encoder.IsThumbnailGenerated [...] read more
I followed Microsoft's instructions to implement MediaFrameReader API in order to process video captured by camera. The problem is I don't know why the bitmap doesn't show up in XAML, I can't save it to jpeg either (bitmap is not empty). I did convert the bitmap to proper format for [...] read more
I'm trying to convert my cropped image (and/or Grid) to new Normal Image , but it returns as it cropped , in same position, how to fix it, there is how works my program after cropping enter image description here [https://i.stack.imgur.com/3VnML.png] private async void Save(object sender, RoutedEventArgs e) { RenderTargetBitmap [...] read more
I'm new in UWP and my first Task is crop imagine, now I'm trying to find how can I create a dynamic rectangle to crop imagine p.s. I'm sorry for the bad grammar. My program must have button to open the file, then on the screen must be dynamic rectangle [...] read more
I would like to resize an image picked from the gallery of the phone before uploading it via background transfer so far I have:- filePicker.pickSingleFileAsync().then(function (file) { uploadSingleFileAsync(uri, file); }).done(null, displayException); function uploadSingleFileAsync(uri, file) { if (!file) { displayError("Error: No file selected."); return; } return file.getBasicPropertiesAsync().then(function (properties) { if (properties.size [...] read more