예제 #1
0
        /// <summary> Returns the width in pixels of the specified component in the overall
        /// image.
        ///
        /// </summary>
        /// <param name="c">The index of the component, from 0 to N-1.
        ///
        /// </param>
        /// <returns> The width in pixels of component <tt>c</tt> in the overall
        /// image.
        ///
        /// </returns>
        public virtual int getCompImgWidth(int c)
        {
            // Retrieves the component maximum resolution index and gets the width
            // from the source module.
            int rl = decSpec.dls.getMinInComp(c);

            return(mressrc.getCompImgWidth(c, rl));
        }
 /// <summary> Returns the width 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.</p>
 ///
 /// </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 width in pixels of component <tt>c</tt> in the overall
 /// image.
 ///
 /// </returns>
 public virtual int getCompImgWidth(int c, int rl)
 {
     return(mressrc.getCompImgWidth(c, rl));
 }