Name | CNSImage_Resize |
---|
Description | This function allows you to resize an image. You can either resize proportionally by defining only one dimension, or stretch the image by defining both.
|
---|
Return Type | Container |
---|
Format | CNSImage_Resize ( Image ; Width ; Height ) |
---|
Required Parameters | Image A Container field that contains an Image or a Path and File Name to an Image you want to resize.
WidthThe new Width for the Image.
HeightThe new Height for the Image.
|
---|
Examples | - Example 1
Proportionally resizes the image in the "Image" field to have a width of 200 pixels. CNSImage_Resize( Image; 200 ; "")
- Example 2
Proportionally resizes the image in the "Image" field to have a height of 100 pixels. CNSImage_Resize( Image; "" ; 100)
- Example 3
Stretches image in the "Image" field to have a width of 200 pixels and a height of 100 pixels. CNSImage_Resize( Image; 200 ; 100)
|
---|