Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / FilterTextureFromFile

FilterTextureFromFile method

Applies a texture using the specified texture image.

Syntax

Boolean FilterTextureFromFile(strFile As String, 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
strFileStringYesString containing the path of the texture file.
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 | FilterTextureFromSerializedStream | FilterTextureFromStream | FilterTextureFromURL