Removed support for Activated JIMI package
This commit is contained in:
parent
c207f380d9
commit
be7fe1780a
1 changed files with 0 additions and 47 deletions
|
@ -1,47 +0,0 @@
|
||||||
// ActivatedImageWrapper.java
|
|
||||||
// Copyright (c) Hannes Wallnöfer 1999-2000
|
|
||||||
|
|
||||||
package helma.image;
|
|
||||||
|
|
||||||
import java.awt.*;
|
|
||||||
import java.awt.image.*;
|
|
||||||
import com.activated.jimi.*;
|
|
||||||
import com.activated.jimi.util.*;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A wrapper for an image that uses the Activated version of JIMI.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class ActivatedImageWrapper extends ImageWrapper {
|
|
||||||
|
|
||||||
public ActivatedImageWrapper (Image img, Graphics g, int width, int height,
|
|
||||||
ImageGenerator imggen) throws ClassNotFoundException {
|
|
||||||
super (img, g, width, height, imggen);
|
|
||||||
Class.forName ("com.activated.jimi.Jimi");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void reduceColors (int colors) {
|
|
||||||
try {
|
|
||||||
ColorReducer redux = new ColorReducer (colors, true);
|
|
||||||
img = redux.getColorReducedImage (img);
|
|
||||||
} catch (Exception x) {
|
|
||||||
throw new RuntimeException (x.getMessage ());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void saveAs (String filename) {
|
|
||||||
try {
|
|
||||||
Jimi.putImage (img, filename);
|
|
||||||
} catch (JimiException x) {
|
|
||||||
throw new RuntimeException (x.getMessage ());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue