/[classpath]/classpath/java/awt/image/CropImageFilter.java
ViewVC logotype

Diff of /classpath/java/awt/image/CropImageFilter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6.2.2 by gnu_andrew, Tue Aug 2 20:12:16 2005 UTC revision 1.6.2.3 by gnu_andrew, Sat Sep 10 15:31:45 2005 UTC
# Line 79  public class CropImageFilter extends Ima Line 79  public class CropImageFilter extends Ima
79       */       */
80      public void setDimensions(int width, int height)      public void setDimensions(int width, int height)
81      {      {
82          if (consumer != null)
83          consumer.setDimensions(this.width, this.height);          consumer.setDimensions(this.width, this.height);
84      }      }
85    
# Line 93  public class CropImageFilter extends Ima Line 94  public class CropImageFilter extends Ima
94      public void setProperties(Hashtable props)      public void setProperties(Hashtable props)
95      {      {
96          props.put("filters", "CropImageFilter");          props.put("filters", "CropImageFilter");
97          consumer.setProperties(props);          if (consumer != null)
98              consumer.setProperties(props);
99      }      }
100    
101      /**      /**
# Line 130  public class CropImageFilter extends Ima Line 132  public class CropImageFilter extends Ima
132                      cropped[i * bounds.width + j] = pixels[start + bounds.x + j];                      cropped[i * bounds.width + j] = pixels[start + bounds.x + j];
133              }              }
134                            
135              consumer.setPixels(bounds.x, bounds.y,              if (consumer != null)
136                                 bounds.width, bounds.height,                consumer.setPixels(0, 0,
137                                 model, cropped, 0, bounds.width);                                   bounds.width, bounds.height,
138                                     model, cropped, 0, bounds.width);
139          }          }
140      }      }
141    
# Line 170  public class CropImageFilter extends Ima Line 173  public class CropImageFilter extends Ima
173                      cropped[i * bounds.width + j] = pixels[start + bounds.x + j];                      cropped[i * bounds.width + j] = pixels[start + bounds.x + j];
174              }              }
175                            
176              consumer.setPixels(bounds.x, bounds.y,              if (consumer != null)
177                                 bounds.width, bounds.height,                consumer.setPixels(0, 0,
178                                 model, cropped, 0, bounds.width);                                   bounds.width, bounds.height,
179                                     model, cropped, 0, bounds.width);
180          }          }
181      }      }
182    

Legend:
Removed from v.1.6.2.2  
changed lines
  Added in v.1.6.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26