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

Free Support Forum - aspose.com

Moving line shape

Hi, I use drawLine and then I want to move this line [setPinY] and the result is not fully ok - strange behavior when I open the output and move the linLineGraphics.zip (6.4 KB)
e manually and form points are in the wrong places.

@Lukasz_Dobrzynski

An investigation task as DIAGRAMJAVA-51047 has been registered in our issue management system to check this case. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.

@Lukasz_Dobrzynski
Because line is a 1d shape, please also set the values in xform1d, such as the following sample code
shape.getXForm1D().getBeginX().setValue( shape.getXForm().getPinX().getValue() - shape.getXForm().getWidth().getValue() / 2);
shape.getXForm1D().getEndX().setValue( shape.getXForm1D().getBeginX().getValue() + shape.getXForm().getWidth().getValue()) ;
shape.getXForm1D().getBeginY().setValue( shape.getXForm().getPinY().getValue());
shape.getXForm1D().getEndY().setValue(shape.getXForm().getPinY().getValue());

Thanks.