~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to java/awt/image/DirectColorModel.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
  private int extractAndNormalizeSample(int pixel, int component)
168
168
  {
169
169
    int value = extractAndScaleSample(pixel, component);
170
 
    if (hasAlpha() && isAlphaPremultiplied())
 
170
    if (hasAlpha() && isAlphaPremultiplied() && getAlpha(pixel) != 0)
171
171
      value = value*255/getAlpha(pixel);
172
172
    return value;
173
173
  }