Class: DiscardColorTileImagePolicy

DiscardColorTileImagePolicy

new DiscardColorTileImagePolicy()

If the pixel size of the image is greater than the value set for transparency, the texture corresponding to the tile will not be created and the search for an available parent node will be discarded.

See:

Methods

isReady(){Boolean}

Determine if the discard strategy is ready to process the image.

Returns:
Type Description
Boolean If the discard strategy is ready to process the image, it is true; Otherwise, it is false.

shouldDiscardImage(image){Boolean}

Given a tile image, decide whether to discard it.

Name Type Description
image Image

Test image

Throws:

Should DiscardImage cannot be called until the discard strategy is ready.

Type
DeveloperError
Returns:
Type Description
Boolean If the image should be discarded, it is true; Otherwise, it is false.