Could anybody provide example codes to insert a line Arrow into Slide in java?
Thanks
I know hoe to add line arrow, but who knows to add a cloud shape?
thanks
Hi,
I suggest you to please try using following sample code on your end to serve the purpose.
public static void addCloudShape()
{
Presentation pres = new Presentation();
pres.getSlides().get_Item(0).getShapes().addAutoShape(ShapeType.Cloud, 20, 20, 200, 200);
pres.save(“D:\Aspose Data\Cloud.pptx”, SaveFormat.Pptx);
}
Please share, if I may help you further in this regard.
Many Thanks,
Thank you!
when I add a line shape, <span style=“font-size:12.0pt;font-family:“Times New Roman”,“serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
ZH-CN;mso-bidi-language:AR-SA”>addAutoShape(ShapeType.Line, x1, y1, x2, y2);
what are the value of parameters?
x1: start point’s x value?
y1: start point’s y value?
Are the x2 and y2 the end point?
<!–[if gte mso 10]>
<![endif]–>
<span style=“font-size:12.0pt;font-family:“Times New Roman”,“serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
ZH-CN;mso-bidi-language:AR-SA”>it’s addAutoShape(ShapeType.Line, x1, y1, w, h);
Are there any units for x1, y1, w and h?
Thanks
Hi,