TextureFill

TextureFill class

Encapsulates the object that represents texture fill format

class TextureFill;

Properties

PropertyTypeDescription
typeTextureTypeGets and sets the texture type
imageDataUint8ArrayGets and sets the image data of the fill.
isTilingbooleanIndicates whether tile picture as texture.
picFormatOptionPicFormatOptionGets or sets picture format option.
tilePicOptionTilePicOptionGets or sets tile picture option.
pictureFormatTypeFillPictureTypeGets and sets the picture format type.
scalenumberGets and sets the picture format scale.
transparencynumberReturns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

Methods

MethodDescription
getType()@deprecated. Please use the ’type’ property instead. Gets and sets the texture type
setType(TextureType)@deprecated. Please use the ’type’ property instead. Gets and sets the texture type
getImageData()@deprecated. Please use the ‘imageData’ property instead. Gets and sets the image data of the fill.
setImageData(Uint8Array)@deprecated. Please use the ‘imageData’ property instead. Gets and sets the image data of the fill.
isTiling()@deprecated. Please use the ‘isTiling’ property instead. Indicates whether tile picture as texture.
setIsTiling(boolean)@deprecated. Please use the ‘isTiling’ property instead. Indicates whether tile picture as texture.
getPicFormatOption()@deprecated. Please use the ‘picFormatOption’ property instead. Gets or sets picture format option.
setPicFormatOption(PicFormatOption)@deprecated. Please use the ‘picFormatOption’ property instead. Gets or sets picture format option.
getTilePicOption()@deprecated. Please use the ’tilePicOption’ property instead. Gets or sets tile picture option.
setTilePicOption(TilePicOption)@deprecated. Please use the ’tilePicOption’ property instead. Gets or sets tile picture option.
getPictureFormatType()@deprecated. Please use the ‘pictureFormatType’ property instead. Gets and sets the picture format type.
setPictureFormatType(FillPictureType)@deprecated. Please use the ‘pictureFormatType’ property instead. Gets and sets the picture format type.
getScale()@deprecated. Please use the ‘scale’ property instead. Gets and sets the picture format scale.
setScale(number)@deprecated. Please use the ‘scale’ property instead. Gets and sets the picture format scale.
getTransparency()@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).
isNull()Checks whether the implementation object is null.

type

Gets and sets the texture type

type : TextureType;

imageData

Gets and sets the image data of the fill.

imageData : Uint8Array;

isTiling

Indicates whether tile picture as texture.

isTiling : boolean;

picFormatOption

Gets or sets picture format option.

picFormatOption : PicFormatOption;

tilePicOption

Gets or sets tile picture option.

tilePicOption : TilePicOption;

pictureFormatType

Gets and sets the picture format type.

pictureFormatType : FillPictureType;

scale

Gets and sets the picture format scale.

scale : number;

transparency

Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

transparency : number;

getType()

@deprecated. Please use the ’type’ property instead. Gets and sets the texture type

getType() : TextureType;

Returns

TextureType

setType(TextureType)

@deprecated. Please use the ’type’ property instead. Gets and sets the texture type

setType(value: TextureType) : void;

Parameters:

ParameterTypeDescription
valueTextureTypeThe value to set.

getImageData()

@deprecated. Please use the ‘imageData’ property instead. Gets and sets the image data of the fill.

getImageData() : Uint8Array;

setImageData(Uint8Array)

@deprecated. Please use the ‘imageData’ property instead. Gets and sets the image data of the fill.

setImageData(value: Uint8Array) : void;

Parameters:

ParameterTypeDescription
valuenumber[]The value to set.

isTiling()

@deprecated. Please use the ‘isTiling’ property instead. Indicates whether tile picture as texture.

isTiling() : boolean;

setIsTiling(boolean)

@deprecated. Please use the ‘isTiling’ property instead. Indicates whether tile picture as texture.

setIsTiling(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getPicFormatOption()

@deprecated. Please use the ‘picFormatOption’ property instead. Gets or sets picture format option.

getPicFormatOption() : PicFormatOption;

Returns

PicFormatOption

setPicFormatOption(PicFormatOption)

@deprecated. Please use the ‘picFormatOption’ property instead. Gets or sets picture format option.

setPicFormatOption(value: PicFormatOption) : void;

Parameters:

ParameterTypeDescription
valuePicFormatOptionThe value to set.

getTilePicOption()

@deprecated. Please use the ’tilePicOption’ property instead. Gets or sets tile picture option.

getTilePicOption() : TilePicOption;

Returns

TilePicOption

setTilePicOption(TilePicOption)

@deprecated. Please use the ’tilePicOption’ property instead. Gets or sets tile picture option.

setTilePicOption(value: TilePicOption) : void;

Parameters:

ParameterTypeDescription
valueTilePicOptionThe value to set.

getPictureFormatType()

@deprecated. Please use the ‘pictureFormatType’ property instead. Gets and sets the picture format type.

getPictureFormatType() : FillPictureType;

Returns

FillPictureType

setPictureFormatType(FillPictureType)

@deprecated. Please use the ‘pictureFormatType’ property instead. Gets and sets the picture format type.

setPictureFormatType(value: FillPictureType) : void;

Parameters:

ParameterTypeDescription
valueFillPictureTypeThe value to set.

getScale()

@deprecated. Please use the ‘scale’ property instead. Gets and sets the picture format scale.

getScale() : number;

setScale(number)

@deprecated. Please use the ‘scale’ property instead. Gets and sets the picture format scale.

setScale(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getTransparency()

@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

getTransparency() : number;

setTransparency(number)

@deprecated. Please use the ’transparency’ property instead. Returns or sets the degree of transparency of the area as a value from 0.0 (opaque) through 1.0 (clear).

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;