XImageCollection.Replace

Replace(int, Stream)

用另一张图像替换集合中的图像。

public void Replace(int index, Stream stream)
参数类型描述
indexInt32要替换的集合项的索引,范围为 [1..图像数量]。
streamStream包含图像数据的流(JPEG 格式)。

另请参见


Replace(int, Stream, int, bool)

用另一张图像替换集合中的图像。

public void Replace(int index, Stream stream, int quality, bool isBlackAndWhite)
参数类型描述
indexInt32要替换的集合项的索引,范围为 [1..图像数量]。
streamStream包含图像数据的流(JPEG 格式)。
qualityInt32JPEG 压缩质量,以百分比表示(有效值为 0..100)。
isBlackAndWhiteBoolean如果为 true,图像将使用 CCITT 压缩方法进行压缩,该方法为黑白图像提供更好的压缩。仅可用于黑白图像。

另请参见


Replace(int, Stream, int)

用另一张图像替换集合中的图像。

public void Replace(int index, Stream stream, int quality)
参数类型描述
indexInt32要替换的集合项的索引,范围为 [1..图像数量]。
streamStream包含图像数据的流(JPEG 格式)。
qualityInt32JPEG 质量。

另请参见