Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


$image.limitImageSize(image)
Return an image that is scaled to fit the paper page (like "the Fit image to paper " option).

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element.
Return-com.nomagic.magicreport.ImageA 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).

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element.
 maximumWidthjava.lang.StringMaximum The maximum width of the resized image in a term terms of measurementmeasurements.
 maximumHeightjava.lang.StringMaximum The maximum height of the resized image in a term terms of measurementmeasurements.
Return-com.nomagic.magicreport.ImageA 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.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element.
 maximumWidthPixelintMaximum The maximum width of the resized image in a term terms of measurementpixels.
 maximumHeightPixelintMaximum The maximum height of the resized image in a term terms of measurementpixels.
Return-com.nomagic.magicreport.ImageA resized image.

...