你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ImageWriter.Write 方法

定义

重载

Write(Image)

将新的输入图像复制到内部缓冲区。

Write(Memory<Byte>)

将单个映像写入内部缓冲区。

Write(Image)

将新的输入图像复制到内部缓冲区。

public void Write (Azure.AI.Vision.Common.Image image);
member this.Write : Azure.AI.Vision.Common.Image -> unit
Public Sub Write (image As Image)

参数

image
Image

新映像

注解

尚不支持使用 ImageAnalyzer

适用于

Write(Memory<Byte>)

将单个映像写入内部缓冲区。

public void Write (Memory<byte> image);
member this.Write : Memory<byte> -> unit
Public Sub Write (image As Memory(Of Byte))

参数

image
Memory<Byte>

图像数据缓冲区

注解

与 ImageAnalyzer 一起使用时,图像需要采用图像分析服务支持的格式,例如 JPEG、PNG 或 BMP。 请参阅此处支持的格式的完整列表: https://aka.ms/ia-input. SDK 按原样将映像缓冲区发送到服务。 未完成格式转换。

适用于