Exemplo n.º 1
0
 public static async Task <Stream> AsJPGStreamAsync(this TaskParameter parameters, int quality = 80)
 {
     return(await(await parameters.AsWriteableBitmapAsync().ConfigureAwait(continueOnCapturedContext: false)).AsJpegStreamAsync(quality).ConfigureAwait(continueOnCapturedContext: false));
 }
Exemplo n.º 2
0
 public static async Task <Stream> AsPNGStreamAsync(this TaskParameter parameters)
 {
     return(await(await parameters.AsWriteableBitmapAsync().ConfigureAwait(continueOnCapturedContext: false)).AsPngStreamAsync().ConfigureAwait(continueOnCapturedContext: false));
 }