用于丢弃与包含
“丢失”图像。
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 具有以下属性的对象:
|
Methods
确定放弃策略是否准备好处理图像。
Returns:
如果丢弃策略已准备好处理映像,则为True;否则为false。
给定一个平铺图像,决定是否放弃该图像。
Name | Type | Description |
---|---|---|
image |
HTMLImageElement | 要测试的图像。 |
Returns:
如果应丢弃图像,则为True;否则为false。
Throws:
-
DeveloperError 在丢弃策略准备就绪之前,不能调用:
shouldDiscardImage
。