Cleaned up imports and removed unused variables.
This commit is contained in:
parent
dc902a967e
commit
410226aa36
2 changed files with 0 additions and 5 deletions
|
@ -521,7 +521,6 @@ public class ColorQuantizer {
|
||||||
// create the right color model, depending on transparency settings:
|
// create the right color model, depending on transparency settings:
|
||||||
IndexColorModel icm;
|
IndexColorModel icm;
|
||||||
|
|
||||||
int colorDepth = getDepth(numColors);
|
|
||||||
int width = image.getWidth();
|
int width = image.getWidth();
|
||||||
int height = image.getHeight();
|
int height = image.getHeight();
|
||||||
|
|
||||||
|
@ -538,7 +537,6 @@ public class ColorQuantizer {
|
||||||
// create the indexed BufferedImage:
|
// create the indexed BufferedImage:
|
||||||
BufferedImage dest = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_INDEXED, icm);
|
BufferedImage dest = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_INDEXED, icm);
|
||||||
|
|
||||||
boolean firstOut = true;
|
|
||||||
if (dither)
|
if (dither)
|
||||||
new DiffusionFilterOp().filter(image, dest);
|
new DiffusionFilterOp().filter(image, dest);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -25,9 +25,6 @@ import javax.imageio.*;
|
||||||
|
|
||||||
public class GIFImageWriteParam extends ImageWriteParam {
|
public class GIFImageWriteParam extends ImageWriteParam {
|
||||||
|
|
||||||
private boolean quantizeColors;
|
|
||||||
private String quantizeMode;
|
|
||||||
|
|
||||||
public GIFImageWriteParam(Locale locale) {
|
public GIFImageWriteParam(Locale locale) {
|
||||||
super(locale);
|
super(locale);
|
||||||
canWriteProgressive = true;
|
canWriteProgressive = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue