Mozilla2:Image Encoding: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:
  interface imgIEncoder : nsISupports
  interface imgIEncoder : nsISupports
  {
  {
   void encode(in imgIContainer input, in nsIInputStream output);
   void encode(in imgIContainer input, in nsIOutputStream output);
   
   
   /* Output width/height */
   /* Output width/height */
Line 20: Line 20:
  };
  };


=== encode() method ===
Should we put width/height on the encode method?
=== Scaling ===
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.
=== 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");
569

edits