| java.lang.Object sun.awt.image.ImageDecoder sun.awt.qt.QtImageDecoder
QtImageDecoder | class QtImageDecoder extends ImageDecoder (Code) | | QtImageDecoder uses QT's native decoders to decode image
formats (GIF, JPEG, PNG). An instance is instantiated by
QtImageDecoderFactory . This class is optimized to load images
faster by utilizing the QT's native decoders. If the applications performs
image manipulation then the performance is no better than the java decoders.
We acheive high performance by allowing the QT's native decoders to
create a QImage, which we then pass it to QtImageRepresentation. We
eliminate decoding in java as well as calling set*Pixels() ,
which gives us a significant improvemement in the image load time.
|
Method Summary | |
protected byte[] | getEncodedImage() | protected int | imageComplete(int imageHandle, int status, boolean done) | protected int | imageComplete(int status, boolean done) | public void | produceImage() Produce an image from the stream. | public boolean | sendPixels(int pixels, int y) | public boolean | sendPixels(byte pixels, int y) | protected int | setPixels(int x, int y, int w, int h, ColorModel model, byte pix, int off, int scansize) | protected int | setPixels(int x, int y, int w, int h, ColorModel model, int pix, int off, int scansize) |
colorModel | protected ColorModel colorModel(Code) | | The color model used by the image
|
height | protected int height(Code) | | Height of the image
|
imgFormat | protected String imgFormat(Code) | | Image format. This is one of the constants defined in
sun.awt.image.ImageDecoderFactory
|
width | protected int width(Code) | | Width of the image
|
getEncodedImage | protected byte[] getEncodedImage() throws IOException(Code) | | Creates a byte array of the encoded/compressed image stream
|
imageComplete | protected int imageComplete(int imageHandle, int status, boolean done)(Code) | | |
imageComplete | protected int imageComplete(int status, boolean done)(Code) | | |
sendPixels | public boolean sendPixels(int pixels, int y)(Code) | | |
sendPixels | public boolean sendPixels(byte pixels, int y)(Code) | | |
setPixels | protected int setPixels(int x, int y, int w, int h, ColorModel model, byte pix, int off, int scansize)(Code) | | |
setPixels | protected int setPixels(int x, int y, int w, int h, ColorModel model, int pix, int off, int scansize)(Code) | | |
Methods inherited from sun.awt.image.ImageDecoder | public void abort()(Code)(Java Doc) public synchronized void close()(Code)(Java Doc) protected void headerComplete()(Code)(Java Doc) protected int imageComplete(int status, boolean done)(Code)(Java Doc) public boolean isConsumer(ImageConsumer ic)(Code)(Java Doc) protected ImageConsumerQueue nextConsumer(ImageConsumerQueue cq)(Code)(Java Doc) abstract public void produceImage() throws IOException, ImageFormatException(Code)(Java Doc) public void removeConsumer(ImageConsumer ic)(Code)(Java Doc) protected int setColorModel(ColorModel model)(Code)(Java Doc) protected int setDimensions(int w, int h)(Code)(Java Doc) protected int setHints(int hints)(Code)(Java Doc) protected int setPixels(int x, int y, int w, int h, ColorModel model, byte pix, int off, int scansize)(Code)(Java Doc) protected int setPixels(int x, int y, int w, int h, ColorModel model, int pix, int off, int scansize)(Code)(Java Doc) protected int setProperties(Hashtable props)(Code)(Java Doc)
|
|
|