Image.Resize

Resize(int, int, ResizeType)

이미지 크기를 조정합니다.

public abstract void Resize(int newWidth, int newHeight, ResizeType resizeType)
모수유형설명
newWidthInt32새 너비입니다.
newHeightInt32새 높이입니다.
resizeTypeResizeType크기 조정 유형입니다.

또한보십시오


Resize(int, int)

이미지 크기를 조정합니다. 기본값LeftTopToLeftTop사용중입니다.

public void Resize(int newWidth, int newHeight)
모수유형설명
newWidthInt32새 너비입니다.
newHeightInt32새 높이입니다.

다음 예는 Aspose.PSD에서 얻은 PSD 이미지 및 결과의 크기를 조정하는 방법을 보여줍니다.

[C#]

string sourceFileName = "1.psd";
string exportPathPsd = "ResizeTest.psd";
string exportPathPng = "ResizeTest.png";

using (RasterImage image = Image.Load(sourceFileName) as RasterImage)
{
    image.Resize(190, 143);
    image.Save(exportPathPsd, new PsdOptions());
    image.Save(exportPathPng, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}

또한보십시오


Resize(int, int, ImageResizeSettings)

이미지 크기를 조정합니다.

public abstract void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
모수유형설명
newWidthInt32새 너비입니다.
newHeightInt32새 높이입니다.
settingsImageResizeSettings크기 조정 설정입니다.

또한보십시오