Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / GetMegaPixelsFromFile

GetMegaPixelsFromFile method

Retrieves the number of megapixels of the specified file.

Syntax

Number (floating point) GetMegaPixelsFromFile(strFile As String, bWebFilter As Boolean)

Return value

Returns a floating point number containing the number of megapixels.

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 | GetMIMEFromFile | GetMIMEFromFormat | GetWidthFromFile | SetBackgroundColor | SetFormat | SetFormatDefault | SetPixel | SetTransparency