Plexus: Image Decoding

Image Decoding

The image decoding library lets you take incoming queries generated by the offset of the mouse click in an image (using certain browsers) and translate them to different documents. To do this you must create bitmaps of the different objects in the original image. You can use xv to convert the image to an X11 bitmap file (using B&W dithering) then make as many copies as you have objects in the image and edit each one with bitmap setting the bits in the image that corrispond to the object. Then you must convert the xbm files to raw data (by writing the resulting filename_bits[] array to a file using a C wrapper and the write() system call).

After that just follow the example in walk.pl to setup a gateway for it. You'll end up with a bunch of files called object.mask. See the walk example source and the demo that uses it.

________________________________________

Tony Sanders