Interface IFormatterWrapper
@OpenApiAll
public interface IFormatterWrapper
A wrapper for MagicReport formatter. This wrapper allow you to call internal method.
- Since:
- Feb 10, 2011
-
Method Summary
Modifier and TypeMethodDescriptiongetBounds(ITool.RetainedString imageContent) Return the image bounds from image content.getPaperBounds(int dpi) Return the size of paper bounds in pixel.rotateImage(Image image, int degrees) Rotates an image by a specific angle.rotateImage(Image image, int degrees, boolean bestQualityOrVecter) Rotates an image by a specific angle.Return the content of transformed image.
-
Method Details
-
rotateImage
Rotates an image by a specific angle.- Parameters:
image- the image to be rotateddegrees- the angle of rotation can be positive or negativebestQualityOrVecter- to check best quality or vector image- Returns:
- the rotated image
-
rotateImage
Rotates an image by a specific angle.- Parameters:
image- the image to be rotateddegrees- the angle of rotation can be positive or negative- Returns:
- the rotated image
-
scale
Return the content of transformed image. Subsequent rendering is resized according to the specified scaling factors relative to the previous scaling.- Parameters:
image- report imagesx- 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
Return the image bounds from image content.- Parameters:
imageContent- content of image- Returns:
- the image bounds
-
getPaperBounds
Return the size of paper bounds in pixel.- Parameters:
dpi- DPI value- Returns:
- the size of paper bounds.
-