Windows.Graphics.Imaging.BitmapEncoder.CreateAsync

August 14, 2018 ยท View on GitHub

-description

Asynchronously creates a new BitmapEncoder.

-parameters

-param encoderId

The unique identifier of the specified encoder.

-param stream

The output stream.

-returns

An object that manages the asynchronous creation of a new BitmapEncoder.

-remarks

An application must always specify the encoderId in order to create a BitmapEncoder. The unique identifiers of the built-in encoders are available as properties on BitmapEncoder. In addition, the unique identifier of any installed encoder can be obtained by using the GetEncoderInformationEnumerator method.

BitmapEncoder expects that the output stream is empty. You can ensure that the stream is empty by setting its Size property to 0.

-examples

-see-also

CreateAsync(Guid, IRandomAccessStream,IIterable(IKeyValuePair))