CdrImage.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 | |
另请参见