0

I have a Iconic variable BackWallBoundaryLineXLD It containts 2 points and the line connecting them.

I would need to move this line upwards 40 pixels, so basically change the row coordinate of the line to Currentvalue-40.

Is there a simple and clean way to do it, or do I have to extract the points first, edit them and then draw a new line?

sharkyenergy
  • 3,842
  • 10
  • 46
  • 97

2 Answers2

1

Try

hom_mat2d_identity (HomMat2DIdentity)
hom_mat2d_translate (HomMat2DIdentity, -40, 0, HomMat2DTranslate)
affine_trans_contour_xld (BackWallBoundaryLineXLD, BackWallBoundaryLineXLDTranslated, HomMat2DTranslate)
Andrea Mannari
  • 982
  • 1
  • 6
  • 9
0

Try using affine_trans_contour_xld(). You will have to setup a HomMat3D first that specifies your 40pixel translation.

Jake Chittle
  • 316
  • 1
  • 2
  • 4