Метод | Описание | |
---|---|---|
GetCodecInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo |
获取图像编码解码器的所有相关信息
|
|
GetImageCodecInfo ( |
||
GetImageSize ( Image picture, int percent ) : |
根据百分比获取图片的尺寸
|
|
GetImageSize ( Image picture, int width, int height ) : |
根据设定的大小返回图片的大小,考虑图片长宽的比例问题
|
|
GetThumbnailImage ( Image image, int width, int height ) : Image | ||
GetThumbnailImageKeepRatio ( Image image, int width, int height ) : Image |
生成缩略图,并保持纵横比
|
|
SaveImage ( Image image, string savePath, |
Метод | Описание | |
---|---|---|
SaveImage ( Image image, string savePath, System.Drawing.Imaging.ImageCodecInfo ici ) : void |
高质量保存图片
|
public static GetCodecInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo | ||
mimeType | string | 包含编码解码器的多用途网际邮件扩充协议 (MIME) 类型的字符串 |
Результат | System.Drawing.Imaging.ImageCodecInfo |
public static GetImageCodecInfo ( |
||
format | ||
Результат | System.Drawing.Imaging.ImageCodecInfo |
public static GetImageSize ( Image picture, int percent ) : |
||
picture | Image | |
percent | int | |
Результат |
public static GetImageSize ( Image picture, int width, int height ) : |
||
picture | Image | |
width | int | |
height | int | |
Результат |
public static GetThumbnailImage ( Image image, int width, int height ) : Image | ||
image | Image | |
width | int | |
height | int | |
Результат | Image |
public static GetThumbnailImageKeepRatio ( Image image, int width, int height ) : Image | ||
image | Image | |
width | int | |
height | int | |
Результат | Image |
public static SaveImage ( Image image, string savePath, |
||
image | Image | |
savePath | string | |
format | ||
Результат | void |