569
edits
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Interface == | == Interface == | ||
We need to add a new interface. Something like: | We need to add a new interface. Do we want to support passing in an output stream? When you read from the stream should we encode just that much? Thoughts? | ||
Something like: | |||
interface imgIEncoder : nsISupports | interface imgIEncoder : nsISupports | ||
{ | { | ||
Line 15: | Line 18: | ||
You would create one by doing: | You would create one by doing: | ||
createInstance("@mozilla.org/image/encoder;2?type=image/png"); | createInstance("@mozilla.org/image/encoder;2?type=image/png"); | ||
edits