Exemple #1
0
        /// <summary> Returns the height in pixels of the specified component in the overall
        /// image.
        ///
        /// <p>This default implementation returns the value of the source at the
        /// current reconstruction resolution level.</p>
        ///
        /// </summary>
        /// <param name="c">The index of the component, from 0 to N-1.
        ///
        /// </param>
        /// <returns> The height in pixels of component <tt>n</tt> in the overall
        /// image.
        ///
        /// </returns>
        public virtual int getCompImgHeight(int c)
        {
            // Retrieves the component maximum resolution index and gets the
            // height from the source module.
            int rl = decSpec.dls.getMinInComp(c);

            return(mressrc.getCompImgHeight(c, rl));
        }
 /// <summary> Returns the height in pixels of the specified component in the overall
 /// image, for the given resolution level.
 ///
 /// <P>This default implementation returns the value of the source.
 ///
 /// </summary>
 /// <param name="c">The index of the component, from 0 to N-1.
 ///
 /// </param>
 /// <param name="rl">The resolution level, from 0 to L.
 ///
 /// </param>
 /// <returns> The height in pixels of component <tt>c</tt> in the overall
 /// image.
 ///
 /// </returns>
 public virtual int getCompImgHeight(int c, int rl)
 {
     return(mressrc.getCompImgHeight(c, rl));
 }