Page History
...
$image.limitImageSize(image)
Return an image that is scaled to fit the paper page (like "the Fit image to paper " option).
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element. |
Return | - | com.nomagic.magicreport.Image | A resized image. |
...
$image.limitImageSize(image, maximumWidth, maximumHeight)
Return an image that is scaled to fit the paper page but not bigger than specific the specified maximumWidth and maximumHeight in a term terms of measurement measurements (px, in, cm, mm, pt).
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element. |
maximumWidth | java.lang.String | Maximum The maximum width of the resized image in a term terms of measurementmeasurements. | |
maximumHeight | java.lang.String | Maximum The maximum height of the resized image in a term terms of measurementmeasurements. | |
Return | - | com.nomagic.magicreport.Image | A resized image. |
...
$image.limitImageSize(image, maximumWidthPixel, maximumHeightPixel)
Return an image that is scaled to fit the paper page but not bigger than specific the specified maximumWidth and maximumHeight in a term terms of pixelpixels.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | image | com.nomagic.magicreport.Image | An image object for the element. |
maximumWidthPixel | int | Maximum The maximum width of the resized image in a term terms of measurementpixels. | |
maximumHeightPixel | int | Maximum The maximum height of the resized image in a term terms of measurementpixels. | |
Return | - | com.nomagic.magicreport.Image | A resized image. |
...