Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / LoadFromStream

LoadFromStream method

Loads an image from a normal memory stream. To see a list of supported file formats see the Format enumeration.


Boolean LoadFromStream(pStream As Stream, nLength As Number, nPage As Number, bWebFilter As Boolean, bTransparency As Boolean)

Return value

Returns true if the function succeeded.


pStreamStreamYesPointer to the memory stream.
nLengthNumberYesNumber of bytes passed through the stream.
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 | LoadFromFile | LoadFromSerializedStream | LoadFromURL | Reset | SaveToBase64 | SaveToFile | SaveToHBitmap | SaveToHBitmapPreMultiplied | SaveToStream | Serialize | Working with streams