Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
No edit summary |
|||
Line 69: | Line 69: | ||
* NPPVImageFormat (NPPVariable = ?) | * NPPVImageFormat (NPPVariable = ?) | ||
Negotiating the image format will work similarly to [[NPAPI:Models|drawing and event model negotiation]], but the value of NPNVsupportsImageFormat will be a bitmap of supported types. Based on the browser's supported formats, the plugin should select a format. | Negotiating the image format will work similarly to [[NPAPI:Models|drawing and event model negotiation]], but the value of NPNVsupportsImageFormat will be a bitmap of supported types. Based on the browser's supported formats, the plugin should select a subset which it can handle. The format for any given event will be specified in the event, and will be from the plugin's supported subset. | ||
NPImageFormat supportedFormats; | NPImageFormat supportedFormats; | ||
browserFuncs->getvalue(instance, NPNVsupportsImageFormat, &supportedFormats); | browserFuncs->getvalue(instance, NPNVsupportsImageFormat, &supportedFormats); | ||
... | ... | ||
browserFuncs->setvalue(instance, NPPVImageFormat, (void*) | browserFuncs->setvalue(instance, NPPVImageFormat, (void*)supportedSubset); |