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 @ 3016
History | View | Annotate | Download (1.42 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 |
import org.gvsig.tools.util.IsEmpty; |
9 |
|
10 |
/**
|
11 |
*
|
12 |
* @author jjdelcerro
|
13 |
*/
|
14 |
public interface SimpleImage extends IsEmpty { |
15 |
|
16 |
public BufferedImage getBufferedImage(); |
17 |
|
18 |
public byte[] toBytearray(); |
19 |
|
20 |
public byte[] toBytearray(String format); |
21 |
|
22 |
@Override
|
23 |
public String toString(); |
24 |
|
25 |
public String toString(String format); |
26 |
|
27 |
public String toStringBase64(); |
28 |
|
29 |
public String toStringBase64(String format); |
30 |
|
31 |
public String toURL(); |
32 |
|
33 |
public String getFormatName(); |
34 |
|
35 |
public void set(BufferedImage image); |
36 |
|
37 |
public void set(Object source); |
38 |
|
39 |
public int getWidth(); |
40 |
|
41 |
public int getHeight(); |
42 |
|
43 |
public SimpleImage resize(double factor); |
44 |
|
45 |
public SimpleImage resize(int width, int height); |
46 |
|
47 |
public SimpleImage fitinto(int width, int height); |
48 |
|
49 |
public SimpleImage rotate(int angle); |
50 |
|
51 |
public SimpleImage horizontalflip();
|
52 |
|
53 |
public SimpleImage verticalflip();
|
54 |
|
55 |
public SimpleImage transform(AffineTransform transform, int width, int height); |
56 |
|
57 |
public SimpleImage transform(AffineTransform transform); |
58 |
|
59 |
public void save(File output, String formatName) throws IOException; |
60 |
|
61 |
public void save(OutputStream output, String formatName) throws IOException; |
62 |
|
63 |
} |