I am referring the watermark code from your documentation
//Open the existing excel file.
Workbook workbook = new Workbook(dataDir + “AsposeChart.xls”);
//Get the chart in the first worksheet.
com.aspose.cells.Chart chart = workbook.getWorksheets().get(0).getCharts().get(0);
//Add a WordArt watermark (shape) to the chart’s plot area.
com.aspose.cells.Shape wordart = chart.getShapes().addTextEffectInChart(MsoPresetTextEffect.TEXT_EFFECT_2,
“CONFIDENTIAL”, “Arial Black”, 66, false, false, 1200, 500, 2000, 3000);
//Get the shape’s fill format.
com.aspose.cells.MsoFillFormat wordArtFormat = wordart.getFillFormat();
//Set the transparency.
wordArtFormat.setTransparency(0.9);
//Get the line format and make it invisible.
com.aspose.cells.MsoLineFormat lineFormat = wordart.getLineFormat();
lineFormat.setVisible(false);
//Save the excel file.
workbook.save(dataDir + “AsposeChartWatermarked_Out.xls”, SaveFormat.EXCEL_97_TO_2003);<pre class=“code-java” style=“padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: “Courier New”, Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.0333px; background-color: rgb(255, 255, 255);”>
<pre class=“code-java” style=“padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: “Courier New”, Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.0333px; background-color: rgb(255, 255, 255);”>
<pre class=“code-java” style=“padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: “Courier New”, Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.0333px; background-color: rgb(255, 255, 255);”>But the issue is I am getting deprecation warning for aspose cells 16.10.0<pre class=“code-java” style=“padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: “Courier New”, Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.0333px; background-color: rgb(255, 255, 255);”><pre style=“color: rgb(0, 0, 0); font-family: “Fira Code”; font-size: 9pt;”>MsoFillFormat wordArtFormat = wordart.getFillFormat();<pre style=“color: rgb(0, 0, 0); font-family: “Fira Code”; font-size: 9pt;”><pre style=“font-family: “Fira Code”; font-size: 9pt;”>MsoLineFormat lineFormat = wordart.getLineFormat();<pre style=“font-family: “Fira Code”; font-size: 9pt;”>please tell me if there is change in the documentation for newer apis<pre class=“code-java” style=“padding: 0px; margin-top: 0px; margin-bottom: 0px; overflow: auto; font-family: “Courier New”, Courier, monospace; line-height: 1.3; color: rgb(51, 51, 51); font-size: 12.0333px; background-color: rgb(255, 255, 255);”>