Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / GetWidthFromFile

GetWidthFromFile method

Returns the width of the specified file.

Syntax

Number GetWidthFromFile(strFile As String, bWebFilter As Boolean)

Return value

Returns the width in pixels.

Parameters

ParameterTypeRequiredDescription
strFileStringYesString containing the path of the file.
bWebFilterBooleanNoOptional parameter which enables or disables the internet filter. If this parameter is true only web formats are accepted (GIF, JPEG, PNG).

Category

Properties

See also

GetBase64String | GetBitsPerPixelFromFile | GetFormatAsStringFromFile | GetFormatFromFile | GetFormatFromString | GetFramesFromFile | GetGUID | GetHasMultipleFramesFromFile | GetHeightFromFile | GetInfoFromFile | GetInfoFromURL | GetIsAnimatedFromFile | GetIsCMYKFromFile | GetIsSupportedFromFile | GetMegaPixelsFromFile | GetMIMEFromFile | GetMIMEFromFormat | SetBackgroundColor | SetFormat | SetFormatDefault | SetPixel | SetTransparency