EmfImage.Resize

Resize(int, int, ResizeType)

使用此函数轻松调整图像大小,指定所需的宽度、高度和类型。完美用于在保持清晰度和质量的同时将图像调整到特定尺寸。非常适合为各种平台和应用优化图像。

public override void Resize(int newWidth, int newHeight, ResizeType resizeType)
参数类型描述
newWidthInt32新的宽度。
newHeightInt32新的高度。
resizeTypeResizeType缩放类型。

异常

异常条件
NotImplementedException未实现。
NotImplementedException未实现。

另请参见


Resize(int, int, ImageResizeSettings)

使用可自定义设置调整图像尺寸,确保最佳尺寸和清晰度。完美满足特定需求的图像定制,同时保持质量。

public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
参数类型描述
newWidthInt32新的宽度。
newHeightInt32新的高度。
设置ImageResizeSettings缩放设置。

异常

异常条件
NotImplementedException未实现。

另请参见