Save

Save(string)

将图像保存到文件。

public void Save(string filename)
参数类型描述
filenameString将保存图像的文件路径。

另见


Save(string, ImageFormat)

将图像以指定格式保存到文件。

public void Save(string filename, ImageFormat format)
参数类型描述
filenameString将保存图像的文件路径。
formatImageFormat图像格式。

另见


Save(Stream, ImageFormat)

将图像以指定格式保存到流中。

public void Save(Stream stream, ImageFormat format)
参数类型描述
streamStream将保存图像的流。
formatImageFormat图像格式。

另见


Save(string, ImageFormat, int)

将图像以指定格式和质量保存到文件。

public void Save(string filename, ImageFormat format, int quality)
参数类型描述
filenameString将保存图像的文件路径。
formatImageFormat图像格式。
qualityInt32保存图像的质量(0 到 100)。此参数仅影响 Jpeg 格式的保存;对于所有其他格式,将被忽略。

另见


Save(Stream, ImageFormat, int)

将图像以指定格式和质量保存到流中。

public void Save(Stream stream, ImageFormat format, int quality)
参数类型描述
streamStream将保存图像的流。
formatImageFormat图像格式。
qualityInt32保存图像的质量(0 到 100)。此参数仅影响 Jpeg 格式的保存;对于所有其他格式,将被忽略。

另见