Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Help System Author's and Programmer's Guide > Chapter 3 Writing a Help Topic

Displaying Graphics

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Help supports four graphics formats:

  • Tagged Image File Format (TIFF)—Color, grayscale, and black-and-white images created by many standard drawing and scanning applications (filename.tif).

  • X Window dump—Screen dumps from the X Window System™ created with the xwd utility ( filename.xwd)

  • X pixmap—Color icon images (filename.pm).

  • X bitmap—Two-color icon images (filename.bm).

Each graphic is maintained as a separate file. The file format is determined using the file name extensions listed.

The Graphic element points via its attributes to an external file containing graphical data.

A Graphic may be contained within a Figure. Figure must have a Title, and may also contain a Link.

A Graphic is to be rendered as an object, not in-line. For in-line objects, use the InlineGraphic element.

Graphic has the following attributes: Fileref, Entityref, and ID.

The value of the Fileref attribute should be a filename, qualified by a pathname if desired.

The value of the Entityref attribute should be that of an external data entity.

Syntax

Here are some examples of the syntax of Graphic:

<graphic id="ABUG.edprp.igrph.1"     entityref="ABUG.edprp.fig.1"></graphic>
<graphic id="ABUG.crobj.igrph.2" entityref="ABUG.crobj.fig.2"></graphic>
<graphic id="ABUG.crobj.igrph.1" entityref="ABUG.crobj.fig.1"></graphic>

To Create a Figure

  1. Declare a file entity to identify the image file to be included in the Graphic that will be contained inside the Figure.

    <!entity graphic-entity SYSTEM "filename.ext">
  2. Use the Graphic element as shown:

    <Graphic id="id"> entityref=" graphic-entity"<Graphic>

    Where graphic-entity is the entity name for the graphic file you want to display.

If you want the Figure to be a hyperlink, use InlineGraphic instead of Graphic, and put it inside a Link element.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.