Documentation / Marblecore Imaging / Methods / FileShrink
FileShrink method
Shrinks (crops) the specified file to the given width and height using the specified image alignment.
Syntax
Boolean FileShrink(strFile As String, nWidth As Number, nHeight As Number, nAnchor As Anchor, bWebFilter As Boolean, strSaveAs As String, nFormat As Format)
Return value
Returns true if the function succeeded.
Parameters
Parameter | Type | Required | Description |
strFile | String | Yes | String containing the path of the file. |
nWidth | Number | Yes | Width of the image. |
nHeight | Number | Yes | Height of the image. |
nAnchor | Anchor (Enumeration) | No | Optional parameter which specifies the image anchor. |
bWebFilter | Boolean | No | Optional parameter which enables or disables the internet filter. If this parameter is true only web formats are accepted (GIF, JPEG, PNG). |
strSaveAs | String | No | Optional string containing the output file. |
nFormat | Format (Enumeration) | No | Optional parameter which specifies the desired file format. |
Category
File operations
See also
FileConvert |
FileCrop |
FileExpand |
FileFlipHorizontal |
FileFlipVertical |
FileResize |
FileRotate |
FileRotateLeft |
FileRotateRight |
FileThumbnail