ImageGear Professional for Windows ActiveX
ResizeCanvas Method

Description:

Changes the dimensions of the image referenced by IGPage Object. The image data in the bitmap is not stretched or compressed, but copied to the specified offset in the new image.

Syntax:

Sub ResizeCanvas(pPage As IGPage, NewWidth As Long, NewHeight As
Long, XPos As Long, YPos As Long, ResizeMode As
enumIGResizeModes)

Parameters:

Name Description
Page IGPage Object image to resize.
NewWidth Width of the image after resize.
NewHeight Height of the image after resize.
XPos X offset at which to put left top corner of the image after resize.
YPos Y offset at which to put left top corner of the image after resize.
ResizeMode Specifies whether new dimensions are actual dimensions or percentages.

Return Value:

N/A

Bits Per Pixel:

All

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback