ImageGear for Java
resizeCanvas Method
Image to resize.
New image width.
New image height.
X offset at which to put left top corner of the image after resize.
Y offset at which to put left top corner of the image after resize.
Background color to fill the out of picture area; null results in black background.

The image data in the bitmap is not stretched or compressed, but copied to the specified offset in the new image.

Use ImGearProcessingVerifier.canApplyResizeCanvas method to check whether the operation can be performed on the specified image.

com.accusoft.imagegear.core.ImGearPage

This method changes the dimensions of the com.accusoft.imagegear.core.ImGearPage class object.
Syntax
public static void resizeCanvas( 
   ImGearPage page,
   int width,
   int height,
   int offsetX,
   int offsetY,
   ImGearPixel background
)

Parameters

page
Image to resize.
width
New image width.
height
New image height.
offsetX
X offset at which to put left top corner of the image after resize.
offsetY
Y offset at which to put left top corner of the image after resize.
background
Background color to fill the out of picture area; null results in black background.

The image data in the bitmap is not stretched or compressed, but copied to the specified offset in the new image.

Use ImGearProcessingVerifier.canApplyResizeCanvas method to check whether the operation can be performed on the specified image.

com.accusoft.imagegear.core.ImGearPage

See Also

Reference

ImGearProcessing Class
ImGearProcessing Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback