public J2KRenderedImage(J2KReadState readState) { this.readState = readState; HeaderDecoder hd = readState.getHeader(); //determnined by destination Rectangle destinationRegion = readState.getDestinationRegion(); width = destinationRegion.width; height = destinationRegion.height; minX = destinationRegion.x; minY = destinationRegion.y; Rectangle tile0Rect = readState.getTile0Rect(); tileWidth = tile0Rect.width; tileHeight = tile0Rect.height; tileGridXOffset = tile0Rect.x; tileGridYOffset = tile0Rect.y; sampleModel = readState.getSampleModel(); colorModel = readState.getColorModel(); }
public J2KRenderedImage(J2KReadState readState) { this.readState = readState; HeaderDecoder hd = readState.getHeader(); //determnined by destination Rectangle destinationRegion = readState.getDestinationRegion(); width = destinationRegion.width; height = destinationRegion.height; minX = destinationRegion.x; minY = destinationRegion.y; Rectangle tile0Rect = readState.getTile0Rect(); tileWidth = tile0Rect.width; tileHeight = tile0Rect.height; tileGridXOffset = tile0Rect.x; tileGridYOffset = tile0Rect.y; sampleModel = readState.getSampleModel(); colorModel = readState.getColorModel(); }
public J2KRenderedImage(J2KReadState readState) { this.readState = readState; HeaderDecoder hd = readState.getHeader(); //determnined by destination Rectangle destinationRegion = readState.getDestinationRegion(); width = destinationRegion.width; height = destinationRegion.height; minX = destinationRegion.x; minY = destinationRegion.y; Rectangle tile0Rect = readState.getTile0Rect(); tileWidth = tile0Rect.width; tileHeight = tile0Rect.height; tileGridXOffset = tile0Rect.x; tileGridYOffset = tile0Rect.y; sampleModel = readState.getSampleModel(); colorModel = readState.getColorModel(); }
public void readHeader() { if (gotHeader) return; if (readState == null) { try { iis.seek(streamPosition0); } catch(IOException e) { // XXX ignore } readState = new J2KReadState(iis, new J2KImageReadParamJava(getDefaultReadParam()), this); } hd = readState.getHeader(); gotHeader = true; this.width = hd.getImgWidth(); this.height = hd.getImgHeight(); }
public void readHeader() { if (gotHeader) return; if (readState == null) { try { iis.seek(streamPosition0); } catch(IOException e) { // XXX ignore } readState = new J2KReadState(iis, new J2KImageReadParamJava(getDefaultReadParam()), this); } hd = readState.getHeader(); gotHeader = true; this.width = hd.getImgWidth(); this.height = hd.getImgHeight(); }
public void readHeader() { if (gotHeader) return; if (readState == null) { try { iis.seek(streamPosition0); } catch(IOException e) { // XXX ignore } readState = new J2KReadState(iis, new J2KImageReadParamJava(getDefaultReadParam()), this); } hd = readState.getHeader(); gotHeader = true; this.width = hd.getImgWidth(); this.height = hd.getImgHeight(); }