mozIRepresentativeColorCallback 编辑
toolkit/components/places/mozIColorAnalyzer.idl
Scriptable Provides callback methods for mozIColorAnalyzer 1.0 66 Introduced Gecko 17.0 Inherits from: nsISupports
Last changed in Gecko 17.0 (Firefox 17.0 / Thunderbird 17.0 / SeaMonkey 2.14)Method overview
void onComplete(in boolean success, [optional] in unsigned long color); |
Methods
onComplete()
Will be called when color analysis finishes.
void onComplete( in boolean success, [optional] in unsigned long color );
Parameters
- success
- True if analysis was successful, false otherwise. Analysis can fail if the image is transparent, imageURI doesn't resolve to a valid image, or the image is too big.
- color
- The representative color as an integer in RGB form. e.g. 0xFF0102 == rgb(255,1,2). If success is false, color is not provided.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论