src/share/classes/sun/awt/image/ImageRepresentation.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 207,217 ****
}
srcModel = model;
// Check to see if model is INT_RGB
if (model instanceof IndexColorModel) {
! if (model.getTransparency() == model.TRANSLUCENT) {
// REMIND:
// Probably need to composite anyway so force ARGB
cmodel = ColorModel.getRGBdefault();
srcLUT = null;
}
--- 207,217 ----
}
srcModel = model;
// Check to see if model is INT_RGB
if (model instanceof IndexColorModel) {
! if (model.getTransparency() == Transparency.TRANSLUCENT) {
// REMIND:
// Probably need to composite anyway so force ARGB
cmodel = ColorModel.getRGBdefault();
srcLUT = null;
}
*** 584,595 ****
iraster.setDataElements(x, yoff, w, 1, storage);
}
}
}
else {
! if (model.getTransparency() != model.OPAQUE &&
! cmodel.getTransparency() == cmodel.OPAQUE) {
convertToRGB();
}
if (isDefaultBI) {
IntegerComponentRaster iraster =
--- 584,595 ----
iraster.setDataElements(x, yoff, w, 1, storage);
}
}
}
else {
! if (model.getTransparency() != Transparency.OPAQUE &&
! cmodel.getTransparency() == Transparency.OPAQUE) {
convertToRGB();
}
if (isDefaultBI) {
IntegerComponentRaster iraster =