Class: TileDiscardPolicy

TileDiscardPolicy

new TileDiscardPolicy()

A strategy of discarding tile images based on certain criteria. This type describes the interface and is not intended to be directly instantiated.

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

Testing images.

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