ImageGear for .NET
ResizeCanvas Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearProcessing Class : ResizeCanvas Method




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 (Nothing in VB NET) results in black background.

Glossary Item Box

This method changes the dimensions of the ImageGear.Core.ImGearPage class object.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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 (Nothing in VB NET) results in black background.

Remarks

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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.