Interface IFormatterWrapper


@OpenApiAll public interface IFormatterWrapper
A wrapper for MagicReport formatter. This wrapper allow you to call internal method.
Since:
Feb 10, 2011
  • Method Details

    • rotateImage

      Image rotateImage(Image image, int degrees, boolean bestQualityOrVecter)
      Rotates an image by a specific angle.
      Parameters:
      image - the image to be rotated
      degrees - the angle of rotation can be positive or negative
      bestQualityOrVecter - to check best quality or vector image
      Returns:
      the rotated image
    • rotateImage

      Image rotateImage(Image image, int degrees)
      Rotates an image by a specific angle.
      Parameters:
      image - the image to be rotated
      degrees - the angle of rotation can be positive or negative
      Returns:
      the rotated image
    • scale

      Image scale(Image image, double sx, double sy)
      Return the content of transformed image. Subsequent rendering is resized according to the specified scaling factors relative to the previous scaling.
      Parameters:
      image - report image
      sx - the amount by which X coordinates in subsequent rendering operations are multiplied relative to previous rendering operations.
      sy - the amount by which Y coordinates in subsequent rendering operations are multiplied relative to previous rendering operations.
      Returns:
      the image after scaling transformation in content format
    • getBounds

      Rectangle getBounds(ITool.RetainedString imageContent)
      Return the image bounds from image content.
      Parameters:
      imageContent - content of image
      Returns:
      the image bounds
    • getPaperBounds

      Rectangle getPaperBounds(int dpi)
      Return the size of paper bounds in pixel.
      Parameters:
      dpi - DPI value
      Returns:
      the size of paper bounds.