CameraPreviewImageSource Methods

Include Protected Members
Include Inherited Members

The CameraPreviewImageSource type exposes the following members.

Methods

  Name Description
Public method Clone
Clone the image provider.
Public method Close
Public method CreateImageWorker
Create a worker that can perform image processing.
Protected method CreateTestSample
Used for internal testing only.
Public method GetBitmapAsync(Void, Bitmap)
Public method GetBitmapAsync(Bitmap, OutputOption)
Creates a Bitmap from the contents of the image provider.
Public method GetInfoAsync
This method is no longer supported and should not be called. See remarks.
Public method InitializeAsync
Initializes the CameraPreviewImageSource object, using default settings.
Public method Invalidate
Flags the image resource as invalid, causing it to be reloaded the next time it is needed.
Public method LoadAsync
Load and return the actual IImageResource.
Public method Lock
This method is no longer supported and should not be called. See remarks.
Public method PreloadAsync
This method is no longer supported and should not be called. See remarks.
Public method StartPreviewAsync()
Starts preview using default settings. InitializeAsync must be called before StartPreview is called.

When app is suspended the CameraPreviewImageSource must be stopped by calling StopPreviewAsync. When the app is resumed the CameraPreviewImageSource must be restarted by calling InitializeAsync followed by StartPreviewAsync.

Public method StartPreviewAsync(Void)
Public method StartPreviewAsync(VideoEncodingProperties)
Starts preview using the video encoding properties. Supported subtype is YUY2 and NV12 InitializeAsync must be called before StartPreview is called.
Public method StopPreviewAsync
Stops the preview.

When app is suspended the CameraPreviewImageSource must be stopped by calling StopPreviewAsync. When the app is resumed the CameraPreviewImageSource must be restarted by calling InitializeAsync followed by StartPreviewAsync.

Extension Methods

  Name Description
Public Extension Method AsAnimationFrame
Returns an AnimationFrame with the specified IImageProvider as its source and the specified frame duration.
(Defined by ImageProviderExtensions.)
Public Extension Method GetBitmapAsync
Creates a WriteableBitmap with the contents of the image provider.
(Defined by ImageProviderExtensions.)
Public Extension Method Then<TImageConsumer>
Enables a fluid way of chaining multiple IImageProvider objects and IImageConsumer objects.
(Defined by ImageProviderExtensions.)

See Also

CameraPreviewImageSource Class

Lumia.Imaging Namespace