public void loadIconCallback(byte[] data,int width,int height,int rowStride,int bps,int channels,boolean alpha){
  tmpImage=null;
  DataBuffer dataBuf=new DataBufferByte(data,(rowStride * height));
  WritableRaster raster=Raster.createInterleavedRaster(dataBuf,width,height,rowStride,channels,(alpha ? BAND_OFFSETS_ALPHA : BAND_OFFSETS),null);
  ColorModel colorModel=new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_sRGB),alpha,false,ColorModel.TRANSLUCENT,DataBuffer.TYPE_BYTE);
  tmpImage=new BufferedImage(colorModel,raster,false,null);
}

public void loadIconCallback ( byte [ ] data , int width , int height , int rowStride , int bps , int channels , boolean alpha ) { tmpImage = null ; DataBuffer dataBuf = new DataBufferByte ( data , ( rowStride * height ) ) ; WritableRaster raster = Raster . createInterleavedRaster ( dataBuf , width , height , rowStride , channels , ( alpha ? BAND_OFFSETS_ALPHA : BAND_OFFSETS ) , null ) ; ColorModel colorModel = new ComponentColorModel ( ColorSpace . getInstance ( ColorSpace . CS_sRGB ) , alpha , false , ColorModel . TRANSLUCENT , DataBuffer . TYPE_BYTE ) ; tmpImage = new BufferedImage ( colorModel , raster , false , null ) ; }
this method is used by jni as a callback from load_stock_icon . image data is passed back to us via this method and loaded into the local bufferedimage and then returned via getstockicon . do not call this method directly .
