code: private void readRectangle(DataInput pStream, Rectangle pDestRect) throws IOException {
          int y = pStream.readUnsignedShort();
          int x = pStream.readUnsignedShort();
          int h = pStream.readUnsignedShort();
          int w = pStream.readUnsignedShort();
  
          pDestRect.setLocation(getXPtCoord(x), getYPtCoord(y));
          pDestRect.setSize(getXPtCoord(w - x), getYPtCoord(h - y));
      }
docs: Reads the rectangle location and size from an 8-byte rectangle stream.
  
  @param pStream the stream to read from
  @param pDestRect the rectangle to read into
  
  @throws NullPointerException if {@code pDestRect} is {@code null}
  @throws IOException if an I/O error occurs while reading the image.