Changeset 3995


Ignore:
Timestamp:
05/02/08 11:25:28 (12 years ago)
Author:
melissa
Message:

Don't assume that images are transparent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/GIFReader.java

    r3854 r3995  
    141141 
    142142    byte[] b = (byte[]) images.get(no); 
    143     if (no > 0) { 
     143    if (no > 0 && transparency) { 
    144144      byte[] prev = (byte[]) images.get(no - 1); 
     145      int idx = transIndex; 
     146      if (idx >= 127) idx = 0; 
    145147      for (int i=0; i<b.length; i++) { 
    146         if ((act[b[i] & 0xff] & 0xffffff) == 0) { 
     148        if ((act[b[i] & 0xff] & 0xffffff) == idx) { 
    147149          b[i] = prev[i]; 
    148150        } 
Note: See TracChangeset for help on using the changeset viewer.