Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / FilterTextureFromStream

FilterTextureFromStream method

Applies a texture using the specified texture image which need to be supplied as a file stream.

Syntax

Boolean FilterTextureFromStream(pStream As Stream, nLength As Number, nOpacity As Number, bOverlay As Boolean, nScaling As Number, nLeft As Number, nTop As Number, nWidth As Number, nHeight As Number)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
pStreamStreamYesPointer to the memory stream.
nLengthNumberYesNumber of bytes passed through the stream.
nOpacityNumberNoOptional parameter which specifies the opacity of the texture.
bOverlayBooleanNoOptional parameter which disables or enables the texture overlay mode. When overlay is enabled, the texture will be applied without color modification of the texture.
nScalingNumberNoOptional parameter which specifies the scaling of the texture ranging from 50%...200%.
nLeftNumberNoOptional parameter which can be used to specify a clipping rectangle. This parameter specifies the left coordinate of the rectangle.
nTopNumberNoOptional parameter which can be used to specify a clipping rectangle. This parameter specifies the top coordinate of the rectangle.
nWidthNumberNoOptional parameter which can be used to specify a clipping rectangle. This parameter specifies the width of the rectangle.
nHeightNumberNoOptional parameter which can be used to specify a clipping rectangle. This parameter specifies the height of the rectangle.

Category

Filters, Textures

See also

FilterTextureFromBase64 | FilterTextureFromFile | FilterTextureFromSerializedStream | FilterTextureFromURL | Working with streams