ImageProviderExtensions.GetBitmapAsync Method (IImageProvider, WriteableBitmap, OutputOption)
Creates a WriteableBitmap with the contents of the image provider.
Namespace: Lumia.Imaging
Assembly: Lumia.Imaging.Managed (in Lumia.Imaging.Managed.dll) Version: 0.0.0.0
Syntax
public static IAsyncOperation<WriteableBitmap> GetBitmapAsync(
this IImageProvider imageProvider,
WriteableBitmap writeableBitmap,
OutputOption outputOption
)
'Declaration
<ExtensionAttribute>
Public Shared Function GetBitmapAsync (
imageProvider As IImageProvider,
writeableBitmap As WriteableBitmap,
outputOption As OutputOption
) As IAsyncOperation(Of WriteableBitmap)
public:
[ExtensionAttribute]
static IAsyncOperation<WriteableBitmap^>^ GetBitmapAsync(
IImageProvider^ imageProvider,
WriteableBitmap^ writeableBitmap,
OutputOption outputOption
)
Lumia.Imaging.ImageProviderExtensions.GetBitmapAsync = function(imageProvider, writeableBitmap, outputOption);
Parameters
- imageProvider
Type: Lumia.Imaging.IImageProvider
The extended IImageProvider.
- writeableBitmap
Type: Windows.UI.Xaml.Media.Imaging.WriteableBitmap
The WriteableBitmap to fill.
- outputOption
Type: Lumia.Imaging.OutputOption
Specifies how to adjust if the source image has different aspect ratio from the bitmap passed into this method.
Return Value
Type: IAsyncOperation<WriteableBitmap>
An async result with the WriteableBitmap.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IImageProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Version Information
Lumia Imaging SDK
Supported in: 2.0