EmfImage.Resize
Resize(int, int, ResizeType)
使用此函数轻松调整图像大小,指定所需的宽度、高度和类型。完美用于在保持清晰度和质量的同时将图像调整到特定尺寸。非常适合为各种平台和应用优化图像。
public override void Resize(int newWidth, int newHeight, ResizeType resizeType)
| 参数 | 类型 | 描述 |
|---|
| newWidth | Int32 | 新的宽度。 |
| newHeight | Int32 | 新的高度。 |
| resizeType | ResizeType | 缩放类型。 |
异常
| 异常 | 条件 |
|---|
| NotImplementedException | 未实现。 |
| NotImplementedException | 未实现。 |
另请参见
Resize(int, int, ImageResizeSettings)
使用可自定义设置调整图像尺寸,确保最佳尺寸和清晰度。完美满足特定需求的图像定制,同时保持质量。
public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
| 参数 | 类型 | 描述 |
|---|
| newWidth | Int32 | 新的宽度。 |
| newHeight | Int32 | 新的高度。 |
| 设置 | ImageResizeSettings | 缩放设置。 |
异常
| 异常 | 条件 |
|---|
| NotImplementedException | 未实现。 |
另请参见