你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ImageSourceBuffer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ImageSourceBuffer(Action<ImageWriter>) |
采用可选回调函数来写入新映像的构造函数 |
ImageSourceBuffer(ImageFormat, Action<ImageWriter>) |
采用 ImageFormat 和可选回调函数来编写新映像的构造函数 |
ImageSourceBuffer(Action<ImageWriter>)
采用可选回调函数来写入新映像的构造函数
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)
参数
- writeCallback
- Action<ImageWriter>
需要新映像时将调用的回调函数
注解
支持用于 ImageAnalyzer,但没有回调。 调用不带参数的此构造函数。 然后对生成的对象调用 GetWriter () 以获取 ImageWriter。
适用于
ImageSourceBuffer(ImageFormat, Action<ImageWriter>)
采用 ImageFormat 和可选回调函数来编写新映像的构造函数
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)
参数
- format
- ImageFormat
要写入缓冲区的图像的格式
- writeCallback
- Action<ImageWriter>
需要新映像时将调用的回调函数
注解
尚不支持使用 ImageAnalyzer