ImageSourceBuffer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ImageSourceBuffer(Action<ImageWriter>) |
Constructor that takes an optional callback function to write a new image |
ImageSourceBuffer(ImageFormat, Action<ImageWriter>) |
Constructor that takes an ImageFormat and optional callback function to write a new image |
ImageSourceBuffer(Action<ImageWriter>)
Constructor that takes an optional callback function to write a new image
public ImageSourceBuffer (Action<Azure.AI.Vision.Common.ImageWriter> writeCallback = default);
new Azure.AI.Vision.Common.ImageSourceBuffer : Action<Azure.AI.Vision.Common.ImageWriter> -> Azure.AI.Vision.Common.ImageSourceBuffer
Public Sub New (Optional writeCallback As Action(Of ImageWriter) = Nothing)
Parameters
- writeCallback
- Action<ImageWriter>
A callback function that will be invoked when a new image is needed
Remarks
Supported for usage with ImageAnalyzer, but without a callback. Call this constructor without arguments. Then call GetWriter() on the resulting object to get an ImageWriter.
Applies to
ImageSourceBuffer(ImageFormat, Action<ImageWriter>)
Constructor that takes an ImageFormat and optional callback function to write a new image
public ImageSourceBuffer (Azure.AI.Vision.Common.ImageFormat format, Action<Azure.AI.Vision.Common.ImageWriter> writeCallback = default);
new Azure.AI.Vision.Common.ImageSourceBuffer : Azure.AI.Vision.Common.ImageFormat * Action<Azure.AI.Vision.Common.ImageWriter> -> Azure.AI.Vision.Common.ImageSourceBuffer
Public Sub New (format As ImageFormat, Optional writeCallback As Action(Of ImageWriter) = Nothing)
Parameters
- format
- ImageFormat
The format of the image to be written to the buffer
- writeCallback
- Action<ImageWriter>
A callback function that will be invoked when a new image is needed
Remarks
Not yet support for usage with ImageAnalyzer