CameraPreviewImageSource Methods
Include Protected Members
Include Inherited Members
The CameraPreviewImageSource type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clone |
Clone the image provider.
|
|
Close | ||
CreateImageWorker |
Create a worker that can perform image processing.
|
|
CreateTestSample |
Used for internal testing only.
|
|
GetBitmapAsync(Void, Bitmap) | ||
GetBitmapAsync(Bitmap, OutputOption) |
Creates a Bitmap from the contents of the image provider.
|
|
GetInfoAsync |
This method is no longer supported and should not be called. See remarks.
|
|
InitializeAsync |
Initializes the CameraPreviewImageSource object, using default settings.
|
|
Invalidate |
Flags the image resource as invalid, causing it to be reloaded the next time it is needed.
|
|
LoadAsync |
Load and return the actual IImageResource.
|
|
Lock |
This method is no longer supported and should not be called. See remarks.
|
|
PreloadAsync |
This method is no longer supported and should not be called. See remarks.
|
|
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. |
|
StartPreviewAsync(Void) | ||
StartPreviewAsync(VideoEncodingProperties) |
Starts preview using the video encoding properties. Supported subtype is YUY2 and NV12 InitializeAsync must be called before StartPreview is called.
|
|
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 | |
---|---|---|
AsAnimationFrame |
Returns an AnimationFrame with the specified IImageProvider as its source and the specified frame duration.
(Defined by ImageProviderExtensions.) |
|
GetBitmapAsync |
Creates a WriteableBitmap with the contents of the image provider.
(Defined by ImageProviderExtensions.) |
|
Then<TImageConsumer> |
Enables a fluid way of chaining multiple IImageProvider objects and IImageConsumer objects.
(Defined by ImageProviderExtensions.) |