47 |
import java.awt.image.ImageProducer; |
import java.awt.image.ImageProducer; |
48 |
import java.awt.image.Raster; |
import java.awt.image.Raster; |
49 |
import java.awt.image.RenderedImage; |
import java.awt.image.RenderedImage; |
50 |
|
import java.io.DataInput; |
51 |
import java.io.DataOutput; |
import java.io.DataOutput; |
52 |
import java.io.IOException; |
import java.io.IOException; |
53 |
import java.io.InputStream; |
import java.io.InputStream; |
103 |
0x00ff0000, |
0x00ff0000, |
104 |
0x0000ff00, |
0x0000ff00, |
105 |
0x000000ff); |
0x000000ff); |
106 |
|
public GdkPixbufDecoder (DataInput datainput) |
107 |
|
{ |
108 |
|
super (datainput); |
109 |
|
} |
110 |
|
|
111 |
public GdkPixbufDecoder (InputStream in) |
public GdkPixbufDecoder (InputStream in) |
112 |
{ |
{ |
113 |
super (in); |
super (in); |
636 |
boolean ignoreMetadata) |
boolean ignoreMetadata) |
637 |
{ |
{ |
638 |
super.setInput(input, seekForwardOnly, ignoreMetadata); |
super.setInput(input, seekForwardOnly, ignoreMetadata); |
639 |
dec = new GdkPixbufDecoder((InputStream) getInput()); |
Object get = getInput(); |
640 |
|
if (get instanceof InputStream) |
641 |
|
dec = new GdkPixbufDecoder((InputStream) get); |
642 |
|
else if (get instanceof DataInput) |
643 |
|
dec = new GdkPixbufDecoder((DataInput) get); |
644 |
|
else |
645 |
|
throw new IllegalArgumentException("input object not supported: " |
646 |
|
+ get); |
647 |
} |
} |
648 |
|
|
649 |
public BufferedImage read(int imageIndex, ImageReadParam param) |
public BufferedImage read(int imageIndex, ImageReadParam param) |