HPlogo Using the X Window System > Chapter 11 Using Graphics With X Windows

Using Transparent Windows

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Transparent windows allow you to look through an overlay window into the image planes.

Creating a Transparent Window with `xseethru'

xseethru is a transparent overlay-plane window used to see through the overlay planes to the image planes.

Use xseethru from the command line.

xseethru [-geometry width×height±col±row] [-display host:display.screen]

where:

-geometry

The geometry used to create the window.

-display

The screen the window will appear on.

This example opens a transparent window 100-pixels by 100-pixels in size and located 50 pixels from the left and 25 pixels from the top of the screen.

xseethru -geometry 100x100+50+25 Return

Creating a Transparent Window with `xsetroot'

xsetroot allows you to make the root window transparent when you are running X in the overlay planes.

Use xsetroot from the command line.

xsetroot [-solid color]

where:

-solid

Sets the window color to color.

This example turns the root window into a transparent window.

xsetroot -solid transparent Return

Creating a Transparent Background Color

Any window may have transparent as its background color.

This example opens an hpterm window with a transparent background color. <'para>

hpterm -bg transparent Return

© 1995 Hewlett-Packard Development Company, L.P.