GetMimeType

Image.GetMimeType method

返回图像的 mime 类型。

public static string GetMimeType(Image i)
范围类型描述
iImage图像对象/

返回值

如果找到,则 MIME 类型为字符串;否则,“图像/未知”值。

也可以看看