How do I move a smart object to the center of the canvas? Why is my setContentsBounds method unavailable? String tempPsdPath = “temp_output.psd”;
SmartObjectLayer smartObjectLayerNewImg = new SmartObjectLayer(stream);
// smartObjectLayerNewImg.resize(canvasWidth,canvasHeight);
Rectangle bounds = smartObjectLayerNewImg.getBounds();
smartObjectLayerNewImg.setContentsBounds(new Rectangle(200, 200, canvasWidth, canvasHeight));
smartObjectLayerNewImg.updateModifiedContent();
Also, if you need support on a priority basis, along with the direct access to our Paid Support management team, plesse check Aspose Paid Support Services. Dedicated team can help you with the any tasks.