📄 imgdata.java
字号:
* */ public int getCompSubsY(int n); /** * Returns the width in pixels of the specified component in the * current tile. * * @param n The index of the component, from 0 to N-1. * * @return The width in pixels of component <tt>n</tt> in the current * tile. * * * */ public int getCompWidth(int n); /** * Returns the height in pixels of the specified component in the * current tile. * * @param n The index of the component, from 0 to N-1. * * @return The height in pixels of component <tt>n</tt> in the current * tile. * * * */ public int getCompHeight(int n); /** * Returns the width in pixels of the specified component in the * overall image. * * @param n The index of the component, from 0 to N-1. * * @return The width in pixels of component <tt>n</tt> in the overall * image. * * * */ public int getCompImgWidth(int n); /** * Returns the height in pixels of the specified component in the * overall image. * * @param n The index of the component, from 0 to N-1. * * @return The height in pixels of component <tt>n</tt> in the overall * image. * * * */ public int getCompImgHeight(int n); /** * Returns the number of bits, referred to as the "range bits", * corresponding to the nominal range of the image data in the specified * component. If this number is <i>n</b> then for unsigned data the * nominal range is between 0 and 2^b-1, and for signed data it is between * -2^(b-1) and 2^(b-1)-1. In the case of transformed data which is not in * the image domain (e.g., wavelet coefficients), this method returns the * "range bits" of the image data that generated the coefficients. * * @param n The index of the component. * * @return The number of bits corresponding to the nominal range * of the image data (in the image domain). * * * */ public int getNomRangeBits(int n); /** * Changes the current tile, given the new indices. An * IllegalArgumentException is thrown if the coordinates do not * correspond to a valid tile. * * @param x The horizontal index of the tile. * * @param y The vertical index of the new tile. * * * */ public void setTile(int x, int y); /** * Advances to the next tile, in standard scan-line order (by rows * then columns). An NoNextElementException is thrown if the * current tile is the last one (i.e. there is no next tile). * * * */ public void nextTile(); /** * Returns the indixes of the current tile. These are the * horizontal and vertical indexes of the current tile. * * @param co If not null this object is used to return the * information. If null a new one is created and returned. * * @return The current tile's indices (vertical and horizontal * indexes). * * * */ public Coord getTile(Coord co); /** * Returns the index of the current tile, relative to a standard * scan-line order. * * @return The current tile's index (starts at 0). * * * */ public int getTileIdx(); /** * Returns the horizontal and vertical offset of the upper-left corner of * the current tile, in the specified component, relative to the canvas * origin, in the component coordinates (not in the reference grid * coordinates). These are the coordinates of the current tile's (not * active tile) upper-left corner relative to the canvas. * * @param co If not null the object is used to return the values, * if null a new one is created and returned. * * @param n The index of the component (between 0 and N-1) * * @return The horizontal and vertical offsets of the upper-left * corner of the current tile, for the specified component, * relative to the canvas origin, in the component coordinates. * * * */ public Coord getTileOff(Coord co, int n); /** * Returns the horizontal coordinate of the upper-left corner of the * active tile, with respect to the canvas origin, in the component * coordinates, for the specified component. * * @param n The index of the component (between 0 and N-1) * * @return The horizontal coordinate of the upper-left corner of the active * tile, with respect to the canvas origin, for component 'n', in the * component coordinates. * * * */ public int getULX(int n); /** * Returns the vertical coordinate of the upper-left corner of the * active tile, with respect to the canvas origin, in the component * coordinates, for the specified component. * * @param n The index of the component (between 0 and N-1) * * @return The vertical coordinate of the upper-left corner of the active * tile, with respect to the canvas origin, for component 'n', in the * component coordinates. * * * */ public int getULY(int n); /** * Returns the horizontal coordinate of the image origin, the top-left * corner, in the canvas system, on the reference grid. * * @return The horizontal coordinate of the image origin in the canvas * system, on the reference grid. * * * */ public int getImgULX(); /** * Returns the vertical coordinate of the image origin, the top-left * corner, in the canvas system, on the reference grid. * * @return The vertical coordinate of the image origin in the canvas * system, on the reference grid. * * * */ public int getImgULY(); /** * Returns the number of tiles in the horizontal and vertical directions. * * @param co If not null this object is used to return the * information. If null a new one is created and returned. * * @return The number of tiles in the horizontal (Coord.x) and * vertical (Coord.y) directions. * * * */ public Coord getNumTiles(Coord co); /** * Returns the total number of tiles in the image. * * @return The total number of tiles in the image. * * * */ public int getNumTiles();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -