Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / FileCrop

FileCrop method

Performs a crop transformation on the specified image file.

Syntax

Boolean FileCrop(strFile As String, nLeft As Number, nTop As Number, nWidth As Number, nHeight As Number, bWebFilter As Boolean, strSaveAs As String, nFormat As Format)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
strFileStringYesString containing the path of the file.
nLeftNumberYesLeft coordinate of the crop rectangle.
nTopNumberYesTop coordinate of the crop rectangle.
nWidthNumberYesWidth of the crop rectangle.
nHeightNumberYesHeight of the crop rectangle.
bWebFilterBooleanNoOptional parameter which enables or disables the internet filter. If this parameter is true only web formats are accepted (GIF, JPEG, PNG).
strSaveAsStringNoOptional string containing the output file.
nFormatFormat (Enumeration)NoOptional parameter which specifies the desired file format.

Category

File operations

See also

FileConvert | FileExpand | FileFlipHorizontal | FileFlipVertical | FileResize | FileRotate | FileRotateLeft | FileRotateRight | FileShrink | FileThumbnail