tkormann    01/10/29 09:38:27

  Modified:    samples  batikCandy.svg
               sources/org/apache/batik/apps/rasterizer Main.java
               sources/org/apache/batik/transcoder/image PNGTranscoder.java
  Log:
  small bug fixes
  
  Revision  Changes    Path
  1.3       +2 -2      xml-batik/samples/batikCandy.svg
  
  Index: batikCandy.svg
  ===================================================================
  RCS file: /home/cvs/xml-batik/samples/batikCandy.svg,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- batikCandy.svg    2001/10/19 16:58:49     1.2
  +++ batikCandy.svg    2001/10/29 17:38:26     1.3
  @@ -14,7 +14,7 @@
   <!-- Batik Logo - looks like Techno-Candy                                      -->
   <!--                                                                           -->
   <!-- @author [EMAIL PROTECTED]                                                  -->
  -<!-- @version $Id: batikCandy.svg,v 1.2 2001/10/19 16:58:49 tkormann Exp $ -->
  +<!-- @version $Id: batikCandy.svg,v 1.3 2001/10/29 17:38:26 tkormann Exp $ -->
   <!-- ========================================================================= -->
   
   <svg width="450" height="500" viewBox="0 0 450 500">
  @@ -40,7 +40,7 @@
       panose-1="2 11 8 6 3 9 2 5 2 4"
       ascent="2066"
       descent="-432"
  -    baseline="0" />
  +     />
   
   <missing-glyph horiz-adv-x="1536" d="M256 0V1280H1280V0H256ZM288 
32H1248V1248H288V32Z" />
   
  
  
  
  1.13      +3 -3      xml-batik/sources/org/apache/batik/apps/rasterizer/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/rasterizer/Main.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Main.java 2001/09/19 11:16:37     1.12
  +++ Main.java 2001/10/29 17:38:27     1.13
  @@ -34,7 +34,7 @@
    * A simple class that can generate images from svg documents.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Thierry Kormann</a>
  - * @version $Id: Main.java,v 1.12 2001/09/19 11:16:37 vhardy Exp $
  + * @version $Id: Main.java,v 1.13 2001/10/29 17:38:27 tkormann Exp $
    */
   public class Main {
   
  @@ -124,7 +124,7 @@
                       background = c;
                       continue;
                   } else {
  -                    error("option -w requires an argument");
  +                    error("option -bg requires an argument");
                       usage(System.err);
                       System.exit(1);
                   }
  @@ -132,7 +132,7 @@
                   if (i+1 < args.length) {
                       i++;
                       try{
  -                        width = Float.parseFloat(args[i++]);
  +                        height = Float.parseFloat(args[i++]);
                       }catch(NumberFormatException e){
                           usage(System.err);
                           System.exit(1);
  
  
  
  1.9       +4 -4      
xml-batik/sources/org/apache/batik/transcoder/image/PNGTranscoder.java
  
  Index: PNGTranscoder.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/transcoder/image/PNGTranscoder.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PNGTranscoder.java        2001/09/19 12:16:23     1.8
  +++ PNGTranscoder.java        2001/10/29 17:38:27     1.9
  @@ -25,7 +25,7 @@
    * This class is an <tt>ImageTranscoder</tt> that produces a PNG image.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Thierry Kormann</a>
  - * @version $Id: PNGTranscoder.java,v 1.8 2001/09/19 12:16:23 tkormann Exp $
  + * @version $Id: PNGTranscoder.java,v 1.9 2001/10/29 17:38:27 tkormann Exp $
    */
   public class PNGTranscoder extends ImageTranscoder {
       /**
  @@ -60,15 +60,15 @@
           }
           PNGEncodeParam.RGB params =
               (PNGEncodeParam.RGB)PNGEncodeParam.getDefaultEncodeParam(img);
  -        params.setBackgroundRGB(new int [] { 255, 255, 255 });
  +     params.setBackgroundRGB(new int [] { 255, 255, 255 });
           // We are using sRGB (gamma 2.2).
  -        params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
  +     params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
   
           //
           // This is a trick so that viewers which do not support the alpha
           // channel will see a white background (and not a black one).
           //
  -        boolean forceTransparentWhite = true;
  +        boolean forceTransparentWhite = false;
   
           if (hints.containsKey(KEY_FORCE_TRANSPARENT_WHITE)) {
               forceTransparentWhite = 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to