0 Replies Latest reply on Apr 13, 2008 5:57 AM by (Tom_Jung)

    Scaling of images in a table cell

      Hi,
      I have an issue aboute the scaling of images in a table cell. The table layout is fixed but the images can vary. I tried to transform the images but every time the transformation matrix has a scaling != 1.0 the function results in an error.

      The following code is used.

      PageItem pi = myCell.getNthChildPageItem(0);
      TransformationMatrix[] matrix = pi.transformValuesOf(kCoordinateSpacesInnerCoordinates.value);
      TransformationMatrix scalemat = matrix[0].scaleMatrix(OptArg.makeDouble(0.5), OptArg.makeDouble(0.5));
      Unit[] matValues = UnitUtils.createDouble(scalemat.getMatrixValues());

      pi.transform(
      enums.kCoordinateSpacesInnerCoordinates.value,
      VariableTypeUtils.createEnumeration(enums.kAnchorPointCenterAnchor.value),
      VariableTypeUtils.createUnitList(matValues),
      OptArg.makeVariableType(VariableTypeUtils.createEnumeration( enums.kMatrixContentScaleValues.value ) ),
      OptArg.noBoolean()
      );

      Any suggestions?
      Regards,
      tom