2-9
Cisco Unified IP Phone Services Application Development Notes
OL-18696-01
Chapter 2 CiscoIPPhone XML Objects
XML Object Definitions
Tip
Before displaying a graphic image on a Cisco Unified IP Phone, the software clears the pane dedicated
to services. If a service has text or other information that must be preserved (including the title area), the
information must get redrawn as part of the graphic. If the title is to be hidden, the graphic must be large
enough to cover it.
CiscoIPPhoneImageFile
The latest generation of Cisco Unified IP Phones have higher-resolution displays with more color depth.
The Cisco Unified IP Phone 7970G, for example, has a display area of 298x168 pixels available to the
Services pane and renders images in 12-bit color.
To support these more advanced displays, a new XML object allows the use of color PNG images in
addition to the grayscale
CiscoIPPhoneImage
objects. The
CiscoIPPhoneImageFile
object behaves like
the
CiscoIPPhoneImage
object, except for the image data. Instead of using the
<Data>
tag to embed the
image data, the
<URL>
tag points to the PNG image file.
The web server must deliver the PNG image to the phone with an appropriate MIME Content-Type
header, such as image/png, so the phone recognizes the content as a compressed, binary PNG image. The
PNG image can be either palettized or RGB, and the maximum image size and color depth are model
dependent (see
Table 2-2
).
If the number of colors in the image is not reduced to match the phone capabilities, the image will be
dithered by the phone and yield less than desirable results in most cases. To reduce the number of colors
in a graphics editing program, such as Adobe Photoshop, use the “Posterize” command. The “Posterize”
Table 2-2
Cisco Unified IP Phones Display Image Sizes and Color Depths
Model
Resolution
1
(width x height)
1.
Represents the size of the display that is accessible by Services—not the full resolution of the physical display.
Color/Grayscale
/Monochrome
Color Depth (bits)
Cisco Unified IP Phones 7905G, 7906G,
7911G, 7912G
2
, 7931G
2.
The Cisco Unified IP Phones 7905 and 7912 have pixel-based displays, but they do not support XML images.
N/A
Grayscale
1
Cisco Unified IP Phone 7920
128 x 59
Grayscale
1
Cisco Unified IP Phone 7921G
176 x 140
Color
16
Cisco Unified IP Phones 7940G/60G
133 x 65
Grayscale
2
Cisco Unified IP Phones 7941G, 7941G-GE,
7942G, 7961G, 7961G-GE, 7962G
298 x 144
Grayscale
4
Cisco Unified IP Phones 7945G, 7965G
298 x 156
Color
16
Cisco Unified IP Phone 7970G/7971G
298 x 168
Color
12
Cisco Unified IP Phone 7975G
298 x 168
Color
16
Cisco IP Communicator
298 x 168
Color
24
6921, 6961
396x81
Monochrome
—
6941
396x162
Monochrome
—