~ubuntu-branches/ubuntu/trusty/libitext-java/trusty

« back to all changes in this revision

Viewing changes to core/com/lowagie/text/Image.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-10-02 21:23:15 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091002212315-br9lwonsyo2jgycx
* New upstream release (Closes: #549347).
* Build-Depends on libbctsp-java.
* Build-Depends on debhelper (>= 7).
* Added missing Depends on ${misc:Depends}.
* Added Vcs-Svn and Vcs-Browser fields.
* Updated Standards-Version 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: Image.java 3735 2009-02-26 01:44:03Z xlv $
 
2
 * $Id: Image.java 3941 2009-05-28 14:52:26Z blowagie $
3
3
 *
4
4
 * Copyright 1999, 2000, 2001, 2002 by Bruno Lowagie.
5
5
 *
682
682
                                                int alpha = (pixels[j] >> 24) & 0xff;
683
683
                                                if (alpha == 0) {
684
684
                                                        transparency = new int[2];
685
 
                                                        transparency[0] = transparency[1] = ((pixels[j] & 0x888) != 0) ? 1
686
 
                                                                        : 0;
 
685
                                                        /* bugfix by M.P. Liston, ASC, was: ... ? 1: 0; */
 
686
                                                        transparency[0] = transparency[1] = ((pixels[j] & 0x888) != 0) ? 0xff : 0;
687
687
                                                }
688
688
                                        }
689
689
                                        if ((pixels[j] & 0x888) != 0)