Share via


InteractiveForegroundSegmenter Members

Include Protected Members
Include Inherited Members

The InteractiveForegroundSegmenter type exposes the following members.

Constructors

  Name Description
Public method InteractiveForegroundSegmenter()

Creates and initializes a new empty InteractiveForegroundSegmenter.

Public method InteractiveForegroundSegmenter(IImageProvider)

Creates and initializes a new InteractiveForegroundSegmenter with the specified source.

Public method InteractiveForegroundSegmenter(IImageProvider, Color, Color)

Creates and initializes a new InteractiveForegroundSegmenter with the specified source, foreground color, and background color.

Public method InteractiveForegroundSegmenter(IImageProvider, Color, Color, IImageProvider)

Creates and initializes a new InteractiveForegroundSegmenter with the specified source, annotations source, foreground color, and background color.

Methods

  Name Description
Public method Clone
Clone the image provider.
Public method Close
Public method CreateImageWorker
Create a worker that can perform image processing.
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 GetSources
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 SetSource
Set a source by index.

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.)

Properties

  Name Description
Public property AnnotationsSource

An image containing the user annotations for the foreground and the background. Must contain at least one pixel in foreground color and one pixel in background color.

The segmenter will only consider pixels of foreground color or background color, any other color will be treated as unknown.

Public property BackgroundColor

The color that represents the background annotations in the AnnotationsSource image.

Default value is blue (A = 255, R = 0, G = 0, B = 255).

Public property ForegroundColor

The color that represents the foreground annotations in the AnnotationsSource image.

Default value is red (R = 255, G = 0, B = 0).

Public property PropertyDescriptions
Public property Quality

Quality of the result.

Changing quality of the effect affects time and memory consumption of the effect by adjusting the working size. The working size of the effect is dependent on the Source's size, so a lower Quality value might be necessary to avoid an OutOfMemoryException.

Range [0.0, 1.0]. Default value is 1.

Public property Source
The IImageProvider that will be used as source.
Public property SourceCount
Public property SupportedRenderOptions
Supported rendering options.

See Also

InteractiveForegroundSegmenter Class

Lumia.Imaging.Compositing Namespace