ImageResize Method (Int32, Int32)
Resizes the image. The default LeftTopToLeftTop is used.

Namespace: Aspose.PSD
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 20.6
Syntax
public void Resize(
	int newWidth,
	int newHeight
)

Parameters

newWidth
Type: SystemInt32
The new width.
newHeight
Type: SystemInt32
The new height.
Examples
The following example demonstrates how to resize PSD image and result we get by Aspose.PSD
[C#]

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

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