We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Resize Layer Issue

Hi team,

I want to add new Layer base on Image ( file image attached ) as code below

		Stream stream = new FileStream(path, FileMode.Open);
		var newLayer = new Layer(stream); 
        var newLayer = new Layer(stream);
		newLayer.Left = layer.Left;
		newLayer.Right = layer.Right;
		newLayer.Bottom = layer.Bottom;
		newLayer.Top = layer.Top;
		newLayer.DisplayName = custom.Value;
        **newLayer.Resize(550, 73, ResizeType.None);**

But new Layer can’t show full image in Psd so I use the method : Resize(with, height) with purpose scale the layer to show full image but the code throw exception as image attached. Please help me to check it.

Uploading: Resize.jpg…
testimg.png (1.6 KB)



Can you please share the working sample code along with source PSD file and desired output you want to achieve on your end.

You’re on the wrong track. This framework is really hard to use.The first step is to convert the layer to PSD, scale the PSD, and then add the PSD as a layer to the original PSD, ResizeType didn’t None. You try other value.


If you still encounter issue, please share the requested details with us.