gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / SimpleImage.java @ 2295
History | View | Annotate | Download (1.22 KB)
1 |
package org.gvsig.tools.swing.api; |
---|---|
2 |
|
3 |
import java.awt.geom.AffineTransform; |
4 |
import java.awt.image.BufferedImage; |
5 |
import java.io.File; |
6 |
import java.io.IOException; |
7 |
import java.io.OutputStream; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public interface SimpleImage { |
14 |
|
15 |
public BufferedImage getBufferedImage(); |
16 |
|
17 |
public byte[] toBytearray(); |
18 |
|
19 |
public byte[] toBytearray(String format); |
20 |
|
21 |
@Override
|
22 |
public String toString(); |
23 |
|
24 |
public String toString(String format); |
25 |
|
26 |
public String getFormatName(); |
27 |
|
28 |
public void set(BufferedImage image); |
29 |
|
30 |
public void set(Object source); |
31 |
|
32 |
public boolean isEmpty(); |
33 |
|
34 |
public int getWidth(); |
35 |
|
36 |
public int getHeight(); |
37 |
|
38 |
public SimpleImage resize(double factor); |
39 |
|
40 |
public SimpleImage resize(int width, int height); |
41 |
|
42 |
public SimpleImage rotate(int angle); |
43 |
|
44 |
public SimpleImage horizontalflip();
|
45 |
|
46 |
public SimpleImage verticalflip();
|
47 |
|
48 |
public SimpleImage transform(AffineTransform transform, int width, int height); |
49 |
|
50 |
public SimpleImage transform(AffineTransform transform); |
51 |
|
52 |
public void save(File output, String formatName) throws IOException; |
53 |
|
54 |
public void save(OutputStream output, String formatName) throws IOException; |
55 |
|
56 |
} |