PropertyFilterpublic abstract class Filter extends Object
SystemCapability.Multimedia#IMAGE| 构造器 | 说明 |
|---|---|
Filter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract long |
applyToSource(ImageSource source) |
Applies the configurations to the source file.
|
abstract Filter |
restore() |
Clears all configurations that have not been applied to the source file.
|
public abstract Filter restore()
Filter object, which can be used for subsequent setting operations.public abstract long applyToSource(ImageSource source) throws IOException
This method requires the permission to modify the source file represented by the ImageSource
object. The configurations do not take effect until this method is called.
source - Indicates the image source file to which the configurations will be applied.-1 otherwise.IOException - Throws this exception if the modification permission has not been obtained.