how to set up UWP C# StorageFile to store a SoftwareBitmap to a specific path
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
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...….
pathname = "diag ProcessFrame .JPG"
CODE FOR EVENT HANDLER FOR WEBCAM USB FRAME...……
private void FrameReader_FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args)
{
// Get frame image from camera:
using (var frame = sender.TryAcquireLatestFrame()) // ==> MediaFrameReference
{
// Got image?
if (frame != null)
{
var renderer = _frameRenderers[frame.SourceKind];
renderer.ProcessFrame(frame);
}
}
}
// Process latest frame received from USB webcam.
public void ProcessFrame( MediaFrameReference frame)
{
// Convert frame to a SoftwareBitmap of a valid format to display in an Image control:
// SoftwareBitmap Class
// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.softwarebitmap?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(Windows.Graphics.Imaging.SoftwareBitmap)%3Bk(TargetFrameworkMoniker-.NETCore%2CVersion%3Dv5.0)%3Bk(DevLang-csharp)%26rd%3Dtrue
var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame);
if (softwareBitmap != null)
{
// Swap the processed frame to _backBuffer and trigger UI thread to render it
softwareBitmap = Interlocked.Exchange(ref _backBuffer, softwareBitmap); // does bytes = h X w ?
// UI thread always reset _backBuffer before using it. Unused bitmap should be disposed.
softwareBitmap?.Dispose();
//////////////////////// DISPLAY FRAME LOCALLY /////////////////////////
// Changes to xaml ImageElement must happen in UI thread through Dispatcher
var task = _imageElement.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
async () =>
{
// Keep draining frames from the backbuffer until the backbuffer is empty.
SoftwareBitmap latest_frame_SoftwareBitmap;
while (( latest_frame_SoftwareBitmap = Interlocked.Exchange(ref _backBuffer, null)) != null)
{
// Diag to save frame to a file:
//VideoMediaFrame inputFrame = frame.VideoMediaFrame;
//SoftwareBitmap frame_SoftwareBitmap = inputFrame.SoftwareBitmap;
Common.SaveSoftwareBitmapToFile( latest_frame_SoftwareBitmap, "diag ProcessFrame .JPG");
. . .
}
// Saves encoded (ie. compressed) SoftwareBitmap image pixel data to a specific file pathname.
public static async void SaveSoftwareBitmapToFile(SoftwareBitmap softwareBitmap, String pathname)
{
StorageFile outputFile = await StorageFile.GetFileFromPathAsync( pathname );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERROR OCCURS HERE
using (IRandomAccessStream stream = await outputFile.OpenAsync(FileAccessMode.ReadWrite))
{
// Create an encoder with the desired format
BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.JpegEncoderId, stream);
// Set the software bitmap
encoder.SetSoftwareBitmap(softwareBitmap);
// Set additional encoding parameters, if needed
//encoder.BitmapTransform.ScaledWidth = 320;
//encoder.BitmapTransform.ScaledHeight = 240;
//encoder.BitmapTransform.Rotation = Windows.Graphics.Imaging.BitmapRotation.Clockwise90Degrees;
//encoder.BitmapTransform.InterpolationMode = BitmapInterpolationMode.Fant;
encoder.IsThumbnailGenerated = true;
try
{
await encoder.FlushAsync();
}
catch (Exception err)
{
const int WINCODEC_ERR_UNSUPPORTEDOPERATION = unchecked((int)0x88982F81);
switch (err.HResult)
{
case WINCODEC_ERR_UNSUPPORTEDOPERATION:
// If the encoder does not support writing a thumbnail, then try again
// but disable thumbnail generation.
encoder.IsThumbnailGenerated = false;
break;
default:
throw;
}
}
if (encoder.IsThumbnailGenerated == false)
{
await encoder.FlushAsync();
}
}
}
c# uwp storagefile
add a comment |
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...….
pathname = "diag ProcessFrame .JPG"
CODE FOR EVENT HANDLER FOR WEBCAM USB FRAME...……
private void FrameReader_FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args)
{
// Get frame image from camera:
using (var frame = sender.TryAcquireLatestFrame()) // ==> MediaFrameReference
{
// Got image?
if (frame != null)
{
var renderer = _frameRenderers[frame.SourceKind];
renderer.ProcessFrame(frame);
}
}
}
// Process latest frame received from USB webcam.
public void ProcessFrame( MediaFrameReference frame)
{
// Convert frame to a SoftwareBitmap of a valid format to display in an Image control:
// SoftwareBitmap Class
// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.softwarebitmap?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(Windows.Graphics.Imaging.SoftwareBitmap)%3Bk(TargetFrameworkMoniker-.NETCore%2CVersion%3Dv5.0)%3Bk(DevLang-csharp)%26rd%3Dtrue
var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame);
if (softwareBitmap != null)
{
// Swap the processed frame to _backBuffer and trigger UI thread to render it
softwareBitmap = Interlocked.Exchange(ref _backBuffer, softwareBitmap); // does bytes = h X w ?
// UI thread always reset _backBuffer before using it. Unused bitmap should be disposed.
softwareBitmap?.Dispose();
//////////////////////// DISPLAY FRAME LOCALLY /////////////////////////
// Changes to xaml ImageElement must happen in UI thread through Dispatcher
var task = _imageElement.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
async () =>
{
// Keep draining frames from the backbuffer until the backbuffer is empty.
SoftwareBitmap latest_frame_SoftwareBitmap;
while (( latest_frame_SoftwareBitmap = Interlocked.Exchange(ref _backBuffer, null)) != null)
{
// Diag to save frame to a file:
//VideoMediaFrame inputFrame = frame.VideoMediaFrame;
//SoftwareBitmap frame_SoftwareBitmap = inputFrame.SoftwareBitmap;
Common.SaveSoftwareBitmapToFile( latest_frame_SoftwareBitmap, "diag ProcessFrame .JPG");
. . .
}
// Saves encoded (ie. compressed) SoftwareBitmap image pixel data to a specific file pathname.
public static async void SaveSoftwareBitmapToFile(SoftwareBitmap softwareBitmap, String pathname)
{
StorageFile outputFile = await StorageFile.GetFileFromPathAsync( pathname );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERROR OCCURS HERE
using (IRandomAccessStream stream = await outputFile.OpenAsync(FileAccessMode.ReadWrite))
{
// Create an encoder with the desired format
BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.JpegEncoderId, stream);
// Set the software bitmap
encoder.SetSoftwareBitmap(softwareBitmap);
// Set additional encoding parameters, if needed
//encoder.BitmapTransform.ScaledWidth = 320;
//encoder.BitmapTransform.ScaledHeight = 240;
//encoder.BitmapTransform.Rotation = Windows.Graphics.Imaging.BitmapRotation.Clockwise90Degrees;
//encoder.BitmapTransform.InterpolationMode = BitmapInterpolationMode.Fant;
encoder.IsThumbnailGenerated = true;
try
{
await encoder.FlushAsync();
}
catch (Exception err)
{
const int WINCODEC_ERR_UNSUPPORTEDOPERATION = unchecked((int)0x88982F81);
switch (err.HResult)
{
case WINCODEC_ERR_UNSUPPORTEDOPERATION:
// If the encoder does not support writing a thumbnail, then try again
// but disable thumbnail generation.
encoder.IsThumbnailGenerated = false;
break;
default:
throw;
}
}
if (encoder.IsThumbnailGenerated == false)
{
await encoder.FlushAsync();
}
}
}
c# uwp storagefile
add a comment |
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...….
pathname = "diag ProcessFrame .JPG"
CODE FOR EVENT HANDLER FOR WEBCAM USB FRAME...……
private void FrameReader_FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args)
{
// Get frame image from camera:
using (var frame = sender.TryAcquireLatestFrame()) // ==> MediaFrameReference
{
// Got image?
if (frame != null)
{
var renderer = _frameRenderers[frame.SourceKind];
renderer.ProcessFrame(frame);
}
}
}
// Process latest frame received from USB webcam.
public void ProcessFrame( MediaFrameReference frame)
{
// Convert frame to a SoftwareBitmap of a valid format to display in an Image control:
// SoftwareBitmap Class
// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.softwarebitmap?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(Windows.Graphics.Imaging.SoftwareBitmap)%3Bk(TargetFrameworkMoniker-.NETCore%2CVersion%3Dv5.0)%3Bk(DevLang-csharp)%26rd%3Dtrue
var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame);
if (softwareBitmap != null)
{
// Swap the processed frame to _backBuffer and trigger UI thread to render it
softwareBitmap = Interlocked.Exchange(ref _backBuffer, softwareBitmap); // does bytes = h X w ?
// UI thread always reset _backBuffer before using it. Unused bitmap should be disposed.
softwareBitmap?.Dispose();
//////////////////////// DISPLAY FRAME LOCALLY /////////////////////////
// Changes to xaml ImageElement must happen in UI thread through Dispatcher
var task = _imageElement.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
async () =>
{
// Keep draining frames from the backbuffer until the backbuffer is empty.
SoftwareBitmap latest_frame_SoftwareBitmap;
while (( latest_frame_SoftwareBitmap = Interlocked.Exchange(ref _backBuffer, null)) != null)
{
// Diag to save frame to a file:
//VideoMediaFrame inputFrame = frame.VideoMediaFrame;
//SoftwareBitmap frame_SoftwareBitmap = inputFrame.SoftwareBitmap;
Common.SaveSoftwareBitmapToFile( latest_frame_SoftwareBitmap, "diag ProcessFrame .JPG");
. . .
}
// Saves encoded (ie. compressed) SoftwareBitmap image pixel data to a specific file pathname.
public static async void SaveSoftwareBitmapToFile(SoftwareBitmap softwareBitmap, String pathname)
{
StorageFile outputFile = await StorageFile.GetFileFromPathAsync( pathname );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERROR OCCURS HERE
using (IRandomAccessStream stream = await outputFile.OpenAsync(FileAccessMode.ReadWrite))
{
// Create an encoder with the desired format
BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.JpegEncoderId, stream);
// Set the software bitmap
encoder.SetSoftwareBitmap(softwareBitmap);
// Set additional encoding parameters, if needed
//encoder.BitmapTransform.ScaledWidth = 320;
//encoder.BitmapTransform.ScaledHeight = 240;
//encoder.BitmapTransform.Rotation = Windows.Graphics.Imaging.BitmapRotation.Clockwise90Degrees;
//encoder.BitmapTransform.InterpolationMode = BitmapInterpolationMode.Fant;
encoder.IsThumbnailGenerated = true;
try
{
await encoder.FlushAsync();
}
catch (Exception err)
{
const int WINCODEC_ERR_UNSUPPORTEDOPERATION = unchecked((int)0x88982F81);
switch (err.HResult)
{
case WINCODEC_ERR_UNSUPPORTEDOPERATION:
// If the encoder does not support writing a thumbnail, then try again
// but disable thumbnail generation.
encoder.IsThumbnailGenerated = false;
break;
default:
throw;
}
}
if (encoder.IsThumbnailGenerated == false)
{
await encoder.FlushAsync();
}
}
}
c# uwp storagefile
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...….
pathname = "diag ProcessFrame .JPG"
CODE FOR EVENT HANDLER FOR WEBCAM USB FRAME...……
private void FrameReader_FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args)
{
// Get frame image from camera:
using (var frame = sender.TryAcquireLatestFrame()) // ==> MediaFrameReference
{
// Got image?
if (frame != null)
{
var renderer = _frameRenderers[frame.SourceKind];
renderer.ProcessFrame(frame);
}
}
}
// Process latest frame received from USB webcam.
public void ProcessFrame( MediaFrameReference frame)
{
// Convert frame to a SoftwareBitmap of a valid format to display in an Image control:
// SoftwareBitmap Class
// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.softwarebitmap?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(Windows.Graphics.Imaging.SoftwareBitmap)%3Bk(TargetFrameworkMoniker-.NETCore%2CVersion%3Dv5.0)%3Bk(DevLang-csharp)%26rd%3Dtrue
var softwareBitmap = FrameRenderer.ConvertToDisplayableImage(frame?.VideoMediaFrame);
if (softwareBitmap != null)
{
// Swap the processed frame to _backBuffer and trigger UI thread to render it
softwareBitmap = Interlocked.Exchange(ref _backBuffer, softwareBitmap); // does bytes = h X w ?
// UI thread always reset _backBuffer before using it. Unused bitmap should be disposed.
softwareBitmap?.Dispose();
//////////////////////// DISPLAY FRAME LOCALLY /////////////////////////
// Changes to xaml ImageElement must happen in UI thread through Dispatcher
var task = _imageElement.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
async () =>
{
// Keep draining frames from the backbuffer until the backbuffer is empty.
SoftwareBitmap latest_frame_SoftwareBitmap;
while (( latest_frame_SoftwareBitmap = Interlocked.Exchange(ref _backBuffer, null)) != null)
{
// Diag to save frame to a file:
//VideoMediaFrame inputFrame = frame.VideoMediaFrame;
//SoftwareBitmap frame_SoftwareBitmap = inputFrame.SoftwareBitmap;
Common.SaveSoftwareBitmapToFile( latest_frame_SoftwareBitmap, "diag ProcessFrame .JPG");
. . .
}
// Saves encoded (ie. compressed) SoftwareBitmap image pixel data to a specific file pathname.
public static async void SaveSoftwareBitmapToFile(SoftwareBitmap softwareBitmap, String pathname)
{
StorageFile outputFile = await StorageFile.GetFileFromPathAsync( pathname );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERROR OCCURS HERE
using (IRandomAccessStream stream = await outputFile.OpenAsync(FileAccessMode.ReadWrite))
{
// Create an encoder with the desired format
BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.JpegEncoderId, stream);
// Set the software bitmap
encoder.SetSoftwareBitmap(softwareBitmap);
// Set additional encoding parameters, if needed
//encoder.BitmapTransform.ScaledWidth = 320;
//encoder.BitmapTransform.ScaledHeight = 240;
//encoder.BitmapTransform.Rotation = Windows.Graphics.Imaging.BitmapRotation.Clockwise90Degrees;
//encoder.BitmapTransform.InterpolationMode = BitmapInterpolationMode.Fant;
encoder.IsThumbnailGenerated = true;
try
{
await encoder.FlushAsync();
}
catch (Exception err)
{
const int WINCODEC_ERR_UNSUPPORTEDOPERATION = unchecked((int)0x88982F81);
switch (err.HResult)
{
case WINCODEC_ERR_UNSUPPORTEDOPERATION:
// If the encoder does not support writing a thumbnail, then try again
// but disable thumbnail generation.
encoder.IsThumbnailGenerated = false;
break;
default:
throw;
}
}
if (encoder.IsThumbnailGenerated == false)
{
await encoder.FlushAsync();
}
}
}
c# uwp storagefile
c# uwp storagefile
asked Jan 3 at 22:49
Doug NullDoug Null
3,57094093
3,57094093
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
From the documentation of StorageFile
:
ArgumentException
The path cannot be a relative path or a Uri. Check
the value of path.
You need to specify an absolute path to the file.
Unrelated note: I would try some better naming conventions for your files. The extra space between the name and extension is kind of unconventional (and could cause problems for certain file systems like svn on a unix/linux based OS). From the context, a file name like "C:/path/to/diagProcessFrame.jpg"
would honestly appear to look just fine.
Probably should point out thatGetFileFromPathAsync
is useful to getStorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy
– MickyD
Jan 4 at 3:35
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54030877%2fhow-to-set-up-uwp-c-sharp-storagefile-to-store-a-softwarebitmap-to-a-specific-pa%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the documentation of StorageFile
:
ArgumentException
The path cannot be a relative path or a Uri. Check
the value of path.
You need to specify an absolute path to the file.
Unrelated note: I would try some better naming conventions for your files. The extra space between the name and extension is kind of unconventional (and could cause problems for certain file systems like svn on a unix/linux based OS). From the context, a file name like "C:/path/to/diagProcessFrame.jpg"
would honestly appear to look just fine.
Probably should point out thatGetFileFromPathAsync
is useful to getStorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy
– MickyD
Jan 4 at 3:35
add a comment |
From the documentation of StorageFile
:
ArgumentException
The path cannot be a relative path or a Uri. Check
the value of path.
You need to specify an absolute path to the file.
Unrelated note: I would try some better naming conventions for your files. The extra space between the name and extension is kind of unconventional (and could cause problems for certain file systems like svn on a unix/linux based OS). From the context, a file name like "C:/path/to/diagProcessFrame.jpg"
would honestly appear to look just fine.
Probably should point out thatGetFileFromPathAsync
is useful to getStorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy
– MickyD
Jan 4 at 3:35
add a comment |
From the documentation of StorageFile
:
ArgumentException
The path cannot be a relative path or a Uri. Check
the value of path.
You need to specify an absolute path to the file.
Unrelated note: I would try some better naming conventions for your files. The extra space between the name and extension is kind of unconventional (and could cause problems for certain file systems like svn on a unix/linux based OS). From the context, a file name like "C:/path/to/diagProcessFrame.jpg"
would honestly appear to look just fine.
From the documentation of StorageFile
:
ArgumentException
The path cannot be a relative path or a Uri. Check
the value of path.
You need to specify an absolute path to the file.
Unrelated note: I would try some better naming conventions for your files. The extra space between the name and extension is kind of unconventional (and could cause problems for certain file systems like svn on a unix/linux based OS). From the context, a file name like "C:/path/to/diagProcessFrame.jpg"
would honestly appear to look just fine.
edited Jan 22 at 16:17
answered Jan 3 at 22:57
ChrisChris
1,794419
1,794419
Probably should point out thatGetFileFromPathAsync
is useful to getStorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy
– MickyD
Jan 4 at 3:35
add a comment |
Probably should point out thatGetFileFromPathAsync
is useful to getStorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy
– MickyD
Jan 4 at 3:35
Probably should point out that
GetFileFromPathAsync
is useful to get StorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy– MickyD
Jan 4 at 3:35
Probably should point out that
GetFileFromPathAsync
is useful to get StorageFile
representation of a file outside of the UWP app's isolated file system. It is useful when picking a file and you want to make a copy– MickyD
Jan 4 at 3:35
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54030877%2fhow-to-set-up-uwp-c-sharp-storagefile-to-store-a-softwarebitmap-to-a-specific-pa%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown