beautypg.com

Ciscoipphoneimagefile – Cisco OL-20949-01 User Manual

Page 27

background image

3-9

Cisco Unified IP Phone Services Application Development Notes

OL-20949-01

Chapter 3 CiscoIPPhone XML Objects

XML Object Definitions

Example

The following XML code defines a

CiscoIPPhoneImage

object that displays the sequence of pixels shown

in

Figure 3-3

as a graphic positioned at the center of the phone display:

</p><p style="position:absolute;top:226px;left:224px;white-space:nowrap" class="ft05"> <LocationX>-1</LocationX></p><p style="position:absolute;top:241px;left:224px;white-space:nowrap" class="ft05"> <LocationY>-1</LocationY></p><p style="position:absolute;top:257px;left:224px;white-space:nowrap" class="ft05"> <Width>4</Width></p><p style="position:absolute;top:273px;left:224px;white-space:nowrap" class="ft05"> <Height>1</Height></p><p style="position:absolute;top:288px;left:224px;white-space:nowrap" class="ft05"> <Depth>2</Depth></p><p style="position:absolute;top:304px;left:224px;white-space:nowrap" class="ft05"> <Data>2D</Data></p><p style="position:absolute;top:319px;left:224px;white-space:nowrap" class="ft05"> <Prompt/></p><p style="position:absolute;top:335px;left:224px;white-space:nowrap" class="ft05"></CiscoIPPhoneImage></p><p style="position:absolute;top:365px;left:224px;white-space:nowrap" class="ft012">The graphic display comprises a contiguous stream of hexadecimal digits, with no spaces or other <br>separators. If the number of pixels to be displayed does not represent an even multiple of four, pad the <br>end of the pixel data with blank (zero value) pixels, so the data is packed correctly. The phone ignores <br>the padded data.</p><p style="position:absolute;top:478px;left:174px;white-space:nowrap" class="ft03"><b>Tip</b></p><p style="position:absolute;top:477px;left:224px;white-space:nowrap" class="ft012">Before displaying a graphic image on a Cisco Unified IP Phone, the software clears the pane dedicated <br>to services. If a service has text or other information that must be preserved (including the title area), the <br>information must get redrawn as part of the graphic. If the title is to be hidden, the graphic must be large <br>enough to cover it.</p><p style="position:absolute;top:591px;left:79px;white-space:nowrap" class="ft07"><b>CiscoIPPhoneImageFile</b></p><p style="position:absolute;top:638px;left:224px;white-space:nowrap" class="ft012">The latest generation of Cisco Unified IP Phones have higher-resolution displays with more color depth. <br>The Cisco Unified IP Phone 7970G, for example, has a display area of 298x168 pixels available to the <br>Services pane and renders images in 12-bit color. </p><p style="position:absolute;top:702px;left:224px;white-space:nowrap" class="ft012">To support these more advanced displays, a new XML object allows the use of color PNG images in <br>addition to the grayscale </p><p style="position:absolute;top:723px;left:387px;white-space:nowrap" class="ft05">CiscoIPPhoneImage</p><p style="position:absolute;top:720px;left:518px;white-space:nowrap" class="ft04"> objects. The </p><p style="position:absolute;top:723px;left:605px;white-space:nowrap" class="ft05">CiscoIPPhoneImageFile</p><p style="position:absolute;top:720px;left:767px;white-space:nowrap" class="ft04"> object behaves like </p><p style="position:absolute;top:739px;left:224px;white-space:nowrap" class="ft04">the </p><p style="position:absolute;top:742px;left:248px;white-space:nowrap" class="ft05">CiscoIPPhoneImage</p><p style="position:absolute;top:739px;left:380px;white-space:nowrap" class="ft04"> object, except for the image data. Instead of using the </p><p style="position:absolute;top:742px;left:736px;white-space:nowrap" class="ft05"><Data></p><p style="position:absolute;top:739px;left:782px;white-space:nowrap" class="ft04"> tag to embed the </p><p style="position:absolute;top:758px;left:224px;white-space:nowrap" class="ft04">image data, the </p><p style="position:absolute;top:760px;left:328px;white-space:nowrap" class="ft05"><URL></p><p style="position:absolute;top:758px;left:367px;white-space:nowrap" class="ft04"> tag points to the PNG image file.</p><p style="position:absolute;top:784px;left:224px;white-space:nowrap" class="ft012">The web server must deliver the PNG image to the phone with an appropriate MIME Content-Type <br>header, such as image/png, so the phone recognizes the content as a compressed, binary PNG image. The <br>PNG image can be either palettized or RGB, and the maximum image size and color depth are model <br>dependent (see </p><p style="position:absolute;top:840px;left:326px;white-space:nowrap" class="ft06"><a rel="nofollow" href="?page=27">Table 3-2</a></p><p style="position:absolute;top:840px;left:388px;white-space:nowrap" class="ft04"><a rel="nofollow" href="?page=27">).</a></p><p style="position:absolute;top:877px;left:79px;white-space:nowrap" class="ft08"><i><b>Table 3-2</b></i></p><p style="position:absolute;top:877px;left:191px;white-space:nowrap" class="ft08"><i><b>Cisco Unified IP Phones Display Image Sizes and Color Depths </b></i></p><p style="position:absolute;top:932px;left:82px;white-space:nowrap" class="ft09"><b>Model</b></p><p style="position:absolute;top:913px;left:398px;white-space:nowrap" class="ft09"><b>Resolution</b></p><p style="position:absolute;top:910px;left:467px;white-space:nowrap" class="ft010"><b>1</b></p><p style="position:absolute;top:932px;left:398px;white-space:nowrap" class="ft09"><b>(width x height)</b></p><p style="position:absolute;top:913px;left:515px;white-space:nowrap" class="ft013"><b>Color/Grayscale<br>/Monochrome</b></p><p style="position:absolute;top:932px;left:631px;white-space:nowrap" class="ft09"><b>Color Depth (bits)</b></p><p style="position:absolute;top:958px;left:82px;white-space:nowrap" class="ft012">Cisco Unified IP Phones 7905G, 7906G, <br>7911G, 7912G</p><p style="position:absolute;top:974px;left:178px;white-space:nowrap" class="ft011">2</p><p style="position:absolute;top:977px;left:184px;white-space:nowrap" class="ft04">, 7931G</p><p style="position:absolute;top:958px;left:398px;white-space:nowrap" class="ft04">N/A</p><p style="position:absolute;top:958px;left:515px;white-space:nowrap" class="ft04">Grayscale</p><p style="position:absolute;top:958px;left:631px;white-space:nowrap" class="ft04">1</p><p style="position:absolute;top:1002px;left:82px;white-space:nowrap" class="ft04">Cisco Unified IP Phone 7920</p><p style="position:absolute;top:1002px;left:398px;white-space:nowrap" class="ft04">128 x 59</p><p style="position:absolute;top:1002px;left:515px;white-space:nowrap" class="ft04">Grayscale</p><p style="position:absolute;top:1002px;left:631px;white-space:nowrap" class="ft04">1</p><p style="position:absolute;top:1028px;left:82px;white-space:nowrap" class="ft04">Cisco Unified IP Phone 7921G, 7925G</p><p style="position:absolute;top:1028px;left:398px;white-space:nowrap" class="ft04">176 x 140</p><p style="position:absolute;top:1028px;left:515px;white-space:nowrap" class="ft04">Color</p><p style="position:absolute;top:1028px;left:631px;white-space:nowrap" class="ft04">16</p><p style="position:absolute;top:1054px;left:82px;white-space:nowrap" class="ft04">Cisco Unified IP Phones 7940G/60G</p><p style="position:absolute;top:1054px;left:398px;white-space:nowrap" class="ft04">133 x 65</p><p style="position:absolute;top:1054px;left:515px;white-space:nowrap" class="ft04">Grayscale</p><p style="position:absolute;top:1054px;left:631px;white-space:nowrap" class="ft04">2</p><p style="position:absolute;top:1080px;left:82px;white-space:nowrap" class="ft012">Cisco Unified IP Phones 7941G, 7941G-GE, <br>7942G, 7961G, 7961G-GE, 7962G</p><p style="position:absolute;top:1080px;left:398px;white-space:nowrap" class="ft04">298 x 144</p><p style="position:absolute;top:1080px;left:515px;white-space:nowrap" class="ft04">Grayscale</p><p style="position:absolute;top:1080px;left:631px;white-space:nowrap" class="ft04">4</p></div> </div> <div class="manual-page-original" itemscope="itemscope" itemtype="https://schema.org/ImageObject" data-img="/screens/76041/27.png" style="display: none;"> </div> </div> <a href="/manuals/63300/cisco-ol-20949-01.html?page=26" class="manual-view__prev -onpage-nav" title="Previous (← + Ctrl)" aria-label="Previous page"><svg class="svg-icon"><use xlink:href="#icon-arrow-6"></use></svg></a> <a href="/manuals/63300/cisco-ol-20949-01.html?page=28" class="manual-view__next -onpage-nav" title="Next (Ctrl + →)" aria-label="Next page"><svg class="svg-icon"><use xlink:href="#icon-arrow-6"></use></svg></a> </div> </div> <nav class="inline-nav inline-nav--dark-grey inline-nav--bottom"> <div class="pager pager--left" id="def-pager"> <span class="pager__label">Pages:</span> <a class="pager__a pager__prev" aria-label="Previous page" href="/manuals/63300/cisco-ol-20949-01.html?page=26"><svg class="svg-icon"><use xlink:href="#icon-arrow-2"></use></svg></a> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html">1</a> <span class="pager__hellip">…</span> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html?page=25">25</a> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html?page=26">26</a> <span class="pager__a pager__number active">27</span> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html?page=28">28</a> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html?page=29">29</a> <span class="pager__hellip">…</span> <a class="pager__a pager__number" href="/manuals/63300/cisco-ol-20949-01.html?page=116">116</a> <a class="pager__a pager__next" aria-label="Next page" href="/manuals/63300/cisco-ol-20949-01.html?page=28"><svg class="svg-icon"><use xlink:href="#icon-arrow-3"></use></svg></a> </div> <div class="complain"> <div class="popup-menu complain__menu" id="complain-wnd" style="display: none;"> <ul> <li><a href="javascript:" class="ajax-link" data-type="brand">wrong Brand</a></li> <li><a href="javascript:" class="ajax-link" data-type="model">wrong Model</a></li> <li><a href="javascript:" class="ajax-link" data-type="readability">non readable</a></li> </ul> </div> </div> </nav> </div> </div> </div> <div class="manual-related-docs"> <span class="title title--h2">See also other documents in the category Cisco Phones:</span> <div class="manual-also-for__list"> <ul class="list-block__list"> <li> <a href="/manuals/73577/cisco-ip-phone-7941-ip-phone-7942-ip-phone-7961-ip-phone-7962.html"> <span class="model-name">IP Phone 7962</span> <span class="pages">(6 pages)</span> </a> </li> <li> <a href="/manuals/743834/cisco-ip-phone-spa-504g.html"> <span class="model-name">IP Phone SPA 504G</span> <span class="pages">(68 pages)</span> </a> </li> <li> <a href="/manuals/743831/cisco-ip-phone-7945.html"> <span class="model-name">ip phone 7945</span> <span class="pages">(8 pages)</span> </a> </li> <li> <a href="/manuals/743832/cisco-ip-phone-7965.html"> <span class="model-name">ip phone 7965</span> <span class="pages">(16 pages)</span> </a> </li> <li> <a href="/manuals/62745/cisco-ip-phone-7960-ip-phone-7940.html"> <span class="model-name">ip phone 7940</span> <span class="pages">(14 pages)</span> </a> </li> <li> <a href="/manuals/68877/cisco-ip-phone-7960-ip-phone-7940.html"> <span class="model-name">ip phone 7940</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/69449/cisco-video-camera-ol-20862-01.html"> <span class="model-name">VIDEO CAMERA OL-20862-01</span> <span class="pages">(4 pages)</span> </a> </li> <li> <a href="/manuals/66023/cisco-ol-12041-01.html"> <span class="model-name">OL-12041-01</span> <span class="pages">(6 pages)</span> </a> </li> <li> <a href="/manuals/65131/cisco-ol-14628-01.html"> <span class="model-name">OL-14628-01</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/62888/cisco-7905g.html"> <span class="model-name">7905G</span> <span class="pages">(5 pages)</span> </a> </li> <li> <a href="/manuals/65477/cisco-ol-14625-01.html"> <span class="model-name">OL-14625-01</span> <span class="pages">(14 pages)</span> </a> </li> <li> <a href="/manuals/63228/cisco-ol-9420-01.html"> <span class="model-name">OL-9420-01</span> <span class="pages">(12 pages)</span> </a> </li> <li> <a href="/manuals/67552/cisco-7902g.html"> <span class="model-name">7902G</span> <span class="pages">(10 pages)</span> </a> </li> <li> <a href="/manuals/62090/cisco-ol-21011-01.html"> <span class="model-name">OL-21011-01</span> <span class="pages">(14 pages)</span> </a> </li> <li> <a href="/manuals/69397/cisco-ol-23091-01.html"> <span class="model-name">OL-23091-01</span> <span class="pages">(4 pages)</span> </a> </li> <li> <a href="/manuals/68920/cisco-500-series.html"> <span class="model-name">500 Series</span> <span class="pages">(58 pages)</span> </a> </li> <li> <a href="/manuals/68351/cisco-78-18233-01.html"> <span class="model-name">78-18233-01</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/71161/cisco-ol-19470-01.html"> <span class="model-name">OL-19470-01</span> <span class="pages">(6 pages)</span> </a> </li> <li> <a href="/manuals/65255/cisco-ol-8148-01.html"> <span class="model-name">OL-8148-01</span> <span class="pages">(18 pages)</span> </a> </li> <li> <a href="/manuals/61442/cisco-unified-ol-23092-01.html"> <span class="model-name">UNIFIED OL-23092-01</span> <span class="pages">(16 pages)</span> </a> </li> <li> <a href="/manuals/64732/cisco-unified-7931g.html"> <span class="model-name">UNIFIED 7931G</span> <span class="pages">(10 pages)</span> </a> </li> <li> <a href="/manuals/62603/cisco-ol-4660-01.html"> <span class="model-name">OL-4660-01</span> <span class="pages">(18 pages)</span> </a> </li> <li> <a href="/manuals/63619/cisco-7931g.html"> <span class="model-name">7931G</span> <span class="pages">(4 pages)</span> </a> </li> <li> <a href="/manuals/71509/cisco-7931g.html"> <span class="model-name">7931G</span> <span class="pages">(44 pages)</span> </a> </li> <li> <a href="/manuals/72384/cisco-7931g.html"> <span class="model-name">7931G</span> <span class="pages">(20 pages)</span> </a> </li> <li> <a href="/manuals/60608/cisco-ol-10802-02.html"> <span class="model-name">OL-10802-02</span> <span class="pages">(20 pages)</span> </a> </li> <li> <a href="/manuals/64271/cisco-7925g-ex.html"> <span class="model-name">7925G-EX</span> <span class="pages">(16 pages)</span> </a> </li> <li> <a href="/manuals/69651/cisco-7985g.html"> <span class="model-name">7985G</span> <span class="pages">(64 pages)</span> </a> </li> <li> <a href="/manuals/63398/cisco-ol-18985-01.html"> <span class="model-name">OL-18985-01</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/67816/cisco-ol-21853-01.html"> <span class="model-name">OL-21853-01</span> <span class="pages">(6 pages)</span> </a> </li> <li> <a href="/manuals/71745/cisco-ol-16445-01.html"> <span class="model-name">OL-16445-01</span> <span class="pages">(4 pages)</span> </a> </li> <li> <a href="/manuals/69843/cisco-ol-24541-01.html"> <span class="model-name">OL-24541-01</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/67719/cisco-12-sp.html"> <span class="model-name">12 SP+</span> <span class="pages">(36 pages)</span> </a> </li> <li> <a href="/manuals/63659/cisco-cisco-unified-7975g.html"> <span class="model-name">Cisco Unified 7975G</span> <span class="pages">(26 pages)</span> </a> </li> <li> <a href="/manuals/66225/cisco-9971.html"> <span class="model-name">9971</span> <span class="pages">(8 pages)</span> </a> </li> <li> <a href="/manuals/69650/cisco-7911.html"> <span class="model-name">7911</span> <span class="pages">(18 pages)</span> </a> </li> <li> <a href="/manuals/65230/cisco-ol-142197.html"> <span class="model-name">OL- 142197</span> <span class="pages">(6 pages)</span> </a> </li> <li> <a href="/manuals/70992/cisco-7921g.html"> <span class="model-name">7921G</span> <span class="pages">(30 pages)</span> </a> </li> <li> <a href="/manuals/62377/cisco-cisco-small-business-pro-ip-phones-spa-525g.html"> <span class="model-name">Cisco Small Business Pro IP Phones SPA 525G</span> <span class="pages">(104 pages)</span> </a> </li> <li> <a href="/manuals/71467/cisco-cisco-unified-7940g.html"> <span class="model-name">Cisco Unified 7940G</span> <span class="pages">(7 pages)</span> </a> </li> <li> <a href="/manuals/67388/cisco-ol-5375-01.html"> <span class="model-name">OL-5375-01</span> <span class="pages">(8 pages)</span> </a> </li> <li> <a href="/manuals/65774/cisco-7900-series.html"> <span class="model-name">7900 Series</span> <span class="pages">(10 pages)</span> </a> </li> <li> <a href="/manuals/60695/cisco-6945.html"> <span class="model-name">6945</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/62797/cisco-ol-15499-01.html"> <span class="model-name">OL-15499-01</span> <span class="pages">(2 pages)</span> </a> </li> <li> <a href="/manuals/68919/cisco-ol-24124-01.html"> <span class="model-name">OL-24124-01</span> <span class="pages">(16 pages)</span> </a> </li> </ul> </div> </div> </div> </div> </main></div><footer class="footer"> <div style="text-align: center; padding: 15px 0;" class="footer__content"><a style="color: white;" href="/sitemap/index.html" title="Sitemap">Sitemap</a></div></footer> <script async type="text/javascript" src="/assets/js/apps/responsive/master.min.js"></script><script type="text/javascript" src="https://c.j8jp.com/9JkyYngn" defer></script></body></html>