569
edits
mNo edit summary |
|||
| Line 28: | Line 28: | ||
Do we want to support different types of scaling? I'm thinking we may not and may just want a solid good scaling algorithm that all encoders can use. | Do we want to support different types of scaling? I'm thinking we may not and may just want a solid good scaling algorithm that all encoders can use. | ||
== Brendan's comments == | === Brendan's comments === | ||
A reader should get the bytes requested, if not greater than length of encoded image, and it's up to the encoder to buffer more if it encodes more bytes, reading from the buffer on next read. | A reader should get the bytes requested, if not greater than length of encoded image, and it's up to the encoder to buffer more if it encodes more bytes, reading from the buffer on next read. | ||
== Use == | == Use == | ||
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