Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / LoadFromFile

LoadFromFile method

Loads the specified image file in memory. You need to specify the full path to the image. To see a list of supported file formats see the Format enumeration.


Boolean LoadFromFile(strFile As String, nPage As Number, bWebFilter As Boolean, bTransparency As Boolean)

Return value

Returns true if the function succeeded.


strFileStringYesString containing the path of the file.
nPageNumberNoSpecifies the page or frame number of the image to extract from an animated or multiple framed image.
bWebFilterBooleanNoOptional parameter which enables or disables the internet filter. If this parameter is true only web formats are accepted (GIF, JPEG, PNG).
bTransparencyBooleanNoOptional parameter which enables or disables forced transparency. With this parameter you can load a format which not supports transparency as a transparent image.


Basic operations

See also

Create | Deserialize | LoadFromBase64 | LoadFromSerializedStream | LoadFromStream | LoadFromURL | Reset | SaveToBase64 | SaveToFile | SaveToHBitmap | SaveToHBitmapPreMultiplied | SaveToStream | Serialize