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