Hi, I need to replace a layer in psd file with local jpeg. But I don’t see any available methods to do so in MVC (.NET). Kindly assist.
P.S: Below is the code to create a new rectangle with yellow color. Instead I need to use my own local image to replace a layer.
// Create an image that is needed to be imported into the PSD file.
using (PsdImage drawImage = new PsdImage(layer.Width, layer.Height))
// Fill image surface as needed.
Graphics g = new Graphics(drawImage);
// Call DrawImage method of the Layer class and pass the image instance. layer.DrawImage(new Point(0, 0), drawImage); }