丢弃与包含“缺失”图像的已知图像相匹配的图块图像的策略。 A policy for discarding tile images that match a known image containing a "missing" image.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
具有以下属性的对象: Object with the following properties:
|
方法 Methods
确定丢弃策略是否准备好处理图像。 Determines if the discard policy is ready to process images.
返回: Returns:
如果丢弃策略已准备好处理图像,则为 True;否则为假。 True if the discard policy is ready to process images; otherwise, false.
给定一个平铺图像,决定是否丢弃该图像。 Given a tile image, decide whether to discard that image.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
image |
HTMLImageElement | 要测试的图像。 An image to test. |
返回: Returns:
如果图像应该被丢弃,则为 True;否则为假。 True if the image should be discarded; otherwise, false.
抛出: Throws:
-
DeveloperError :
shouldDiscardImage在丢弃策略准备好之前不得调用。 must not be called before the discard policy is ready.
