This method changes the dimensions of the
ImageGear.Core.ImGearPage class object.
Syntax
'Declaration
Public Shared Sub ResizeCanvas( _
ByVal As ImGearPage, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ImGearPixel _
)
'Usage
Dim page As ImGearPage
Dim width As Integer
Dim height As Integer
Dim offsetX As Integer
Dim offsetY As Integer
Dim background As ImGearPixel
ImGearProcessing.ResizeCanvas(page, width, height, offsetX, offsetY, background)
public static void ResizeCanvas(
ImGearPage ,
int ,
int ,
int ,
int ,
ImGearPixel
)
public: static void ResizeCanvas(
ImGearPage* ,
int ,
int ,
int ,
int ,
ImGearPixel*
)
public:
static void ResizeCanvas(
ImGearPage^ ,
int ,
int ,
int ,
int ,
ImGearPixel^
)
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.
See Also