git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7007 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
d5c65b17a6
commit
e7ea3b3cc5
@ -0,0 +1,24 @@
|
||||
package de.anomic.yacy.graphics;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
import net.yacy.kelondro.util.ByteBuffer;
|
||||
import net.yacy.visualization.RasterPlotter;
|
||||
|
||||
public class EncodedImage {
|
||||
private ByteBuffer image;
|
||||
private String extension;
|
||||
|
||||
public EncodedImage(final BufferedImage sourceImage, final String targetExt) {
|
||||
this.image = RasterPlotter.exportImage(sourceImage, targetExt);
|
||||
this.extension = targetExt;
|
||||
}
|
||||
|
||||
public ByteBuffer getImage() {
|
||||
return this.image;
|
||||
}
|
||||
|
||||
public String getExtension() {
|
||||
return this.extension;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue