Homepage Exercise
In this exercise we are going to combine several things to add a useful link to your homepage: how to capture screen images to a PICT file, how to convert PICT format to GIF format (and rescale if necessary), and how to add a link to the resulting GIF image to your homepage.
The two pieces of software that we shall use are Flash-It, a screen capture shareware program for the Mac, and GifConverter, another Mac shareware program that is a valuable asset in converting and manipulating images.
Open the "Control Panels" in the System Folder and double-click on "Flash-It
3.0.2" to open it. The resulting display can be toggled between two screens:
"Hotkeys" and "Options". The "Hotkeys" screen lists the ways in which a screen
capture can be saved (see figure at right).
All actions are initiated by simultaneously holding down
the "Shift" and the "Apple" (the one with the cloverleaf symbol) keys and then
hitting a third key. The possibilities are listed in the "Hotkeys" screen:
If the Flash-It display is toggled to the "Options" page (figure at
right), there are several choices to control how the screen is captured.
We won't discuss them all (see the documentation
that can be accessed through the "Help" button for more details).
The most important for our
discussion are
The preceding capture used the default
(enabled by "caps lock") that captured an entire window
and its associated menu.
Let's now make another capture where we select explicitly the
region to be captured.
Repeat the above steps to capture the "File" menu of BinHex, except
that this time
Open the file flashit.pict that you just created on the Desktop using
GifConverter. Click on the image to
select it (a banded box should appear around the image, indicating that it is
selected). Pull down the "Image" window and select "Scale" (see figure at
left); this
will pop up a dialog box like the one shown in the figure on the right. In
this figure you must specify the percentage of scaling in the vertical and
horizontal direction. Select 90% for each and click "OK".
Now let's save our rescaled image in GIF format. Pull down the "File" menu and
select "Save As" (left figure). This pops up the dialog box shown below.
Now let's convert the other screenshot image that we took earlier. In the
process, we shall see how to crop images with GifConverter.
Open the file binhex2.pict created previously on the Desktop with
GifConverter and click on the image to select it (see figure at left).
Use the mouse button to select the cropping symbol (the "+"
made from dashed lines
that is circled in the adjacent image).
Hold the mouse button down to drag a rectangle around the part of the image
that you wish to retain and release the mouse button (see figure at right).
Then select "Crop" from the "Image" menu.
This will crop the image, leaving only the part that was
inside the cropping rectangle.
Do a "Save As" like before, and save this as a GIF image in your homepage
folder with the name binhex2.gif. At this point, you may
throw away the Desktop file
binhex2.pict.
<h2>Using BinHex</h2> The encoding program <tt>BinHex</tt> can be used to encode binary files into ASCII. Thus, for example, a binary file can be sent by email if it is first encoded with <tt>BinHex</tt>, emailed, and then decoded with <tt>BinHex</tt> on the other end. <p> <img src="binhex.gif" hspace="15" vspace="5" align="left"> <tt>BinHex</tt> is easy to use. Open the program and select the "File" pulldown menu (see figure at left). Then, if you wish to encode a binary file, select "Application --> Upload", and give the name of the file in the resulting dialog box. If you wish to decode a file already encoded with <tt>BinHex</tt>, select "Download --> Application" and give the name of the file in the resulting dialog box. <p> For example, to encode a binary sound file for emailing, you would select <img src="binhex2.gif"> from the "File" menu and give the name of the file in the resulting dialog box. The default name of the encoded file is the original file name with the extension ".hqx" appended to it, and it is placed in the same directory as the original file.
Save the file index.html, point the browser at it, and reload. You should then have something like the following on your homepage:
BinHex is easy to use. Open the program
and select the "File" pulldown menu (see figure at left).
Then, if you wish to encode a binary file, select "Application
--> Upload", and give the name of the file in the resulting
dialog box. If you wish to decode a file already encoded
with BinHex, select "Download --> Application"
and give the name of the file in the resulting dialog box.
For example, to encode a binary sound file for emailing,
you would select
from the "File" menu
and give the name of the file in the resulting dialog box.
The default name of the encoded file is the original file name with
the extension ".hqx" appended to it, and it is placed in the same directory
as the original file.
In this HTML example, the image tag
<img src="binhex.gif" hspace="15" vspace="5" align="left">
ASSIGNMENT: Use the preceding as a guide; go back to the BinHex program, take screen shots of the dialog boxes that result when you choose "Download --> Application" or "Application --> Upload", and incorporate these images into the BinHex tutorial you have just placed on your homepage.
Next
Back
Top
Home
Help