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

Free Support Forum - aspose.com

Shape position and size

Hi,


I have attached a ods document which contains charts and images. Can you tell the exact position(X, Y) and size (Width, Height) of the charts and images (in pixels and cm)?

Because am trying to set the width , height and XY positions using aspose Shape api. Am using the below code,

//For charts
ChartShape.setHeight();
ChartShape.setWidth();
ChartShape.setPositionXY();

//For images
Picture.setHeight();
Picture.setWidth();
Picture.setPositionXY();

Regards,
Santhosh

Hi,

To get the position(X, Y) and size (Width, Height) of the charts and images, you may try the following methods of Shape object. Both ChartShape and Picture classes extend Shape class.

getHeight();

getHeightCM();
getWidth();
getWidthCM();
getPositionX();
getPositionY();