Inheritance diagram for CorbaBufferedImage::
Public Methods | |
CorbaBufferedImage (HxCorba.RgbSourceOperations src, int width, int height, Object realSrc) | |
This constructor takes two "sources". More... | |
CorbaBufferedImage (HxCorba.RgbSourceOperations src, int width, int height) | |
void | setSource (HxCorba.RgbSourceOperations src) |
void | refreshData () |
void | refreshData (int offset) |
int[] | getPixelData () |
Transfer of image data is done via a RgbTransferManager.
|
This constructor takes two "sources". The first one has a well known interface: HxCorba.RgbSourceOperations. But, this object can be just a Java wrapper aroung a Corba object and not the Corba object itself. In this case, pass the Corba object as last parameter. CorbaMediator uses information from the Corba object to decide on the best transfer manager/strategy.
00030 { 00031 super(width, height, BufferedImage.TYPE_INT_RGB); 00032 00033 DataBufferInt db = (DataBufferInt)getRaster().getDataBuffer(); 00034 _data = db.getData(0); 00035 _mgr = CorbaMediator.instance().createRgbTxMgr(_data.length, 00036 getRealSource(realSrc)); 00037 00038 setSource(src); 00039 } |
|
00042 { 00043 this(src, width, height, src); 00044 } |
|
00047 { 00048 _source = src; 00049 } |
|
00052 { 00053 refreshData(0); 00054 } |
|
00057 { 00058 _mgr.transferData(_source, _data, offset); 00059 } |
|
00062 { 00063 return _data; 00064 } |