Closed Bug 156717 Opened 23 years ago Closed 9 years ago

Need a clean way to get an image from an nsIDOMNode

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ccarlen, Assigned: ccarlen)

Details

From a context menu click on an image, the embedding app is given an nsIDOMNode which represents the image. Depending on what the embedding app wants to do from its context menu handler with that image, it's hard to get the actual image data from it. We have this code: http://lxr.mozilla.org/mozilla/source/content/base/src/nsContentAreaDragDrop.cpp#1078, but it's using all sorts of things we don't want embeddors to see. In addition, nsIImage isn't something we want to make public either. What I'd like to have is a service from which I could get an image object from a DOM node and this image object would support copying to the clipboard and then be QI'able to a platform specific image type so that the embedding app could access the actual pixels if need be.
QA Contact: dunn5557 → apis
Marking a bunch of bugs in the "Embedding: APIs" component INCOMPLETE in preparation to archive that component. If I have done this incorrectly, please reopen the bugs and move them to a more correct component as we don't have "embedding" APIs any more.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.