コード例 #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));
 }
コード例 #2
0
 public static async Task <Stream> AsPNGStreamAsync(this TaskParameter parameters)
 {
     return(await(await parameters.AsWriteableBitmapAsync().ConfigureAwait(continueOnCapturedContext: false)).AsPngStreamAsync().ConfigureAwait(continueOnCapturedContext: false));
 }