Mozilla2:Image Encoding: Difference between revisions

Line 6: Line 6:
  interface imgIEncoder : nsISupports
  interface imgIEncoder : nsISupports
  {
  {
   void encode(in imgIContainer input, in nsIOutputStream output);
  /* input image data
    * output stream
  /* Output width/height */
    * result width
  attribute unsigned long width;
    * result height
  attribute unsigned long height;
    */
   void encode(in imgIContainer input, in nsIOutputStream output,
              in unsigned long width, in unsigned long height);
   
   
   /* type of scaling */
   /* type of scaling */
Line 25: Line 27:
=== Scaling ===
=== 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.
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 ==
569

edits