CdrImage.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

另请参见