diff --git a/collects/teachpack/htdp/Docs/image.thtml b/collects/teachpack/htdp/Docs/image.thtml
index 5d00161a81..ef141a23cf 100644
--- a/collects/teachpack/htdp/Docs/image.thtml
+++ b/collects/teachpack/htdp/Docs/image.thtml
@@ -1,98 +1,160 @@
{ (define LIBNAME "Images")
(include "head.tinc") }
-This teachpack provides primitives for constructing and
-manipulating images.
+This teachpack provides primitives for constructing and manipulating
+images. Basic images are created as outlines or solid shapes. Additional
+primitives allow for the composition of images.
-These functions create basic shapes. The mode can be either
-'solid
or "solid"
, meaning the
-shape is filled in, or 'outline
or
-"outline"
, meaning the shape is hollow. Image
-colors can be either symbols (like 'blue
),
-strings (like "blue"
), or color structs (like
-(make-color 0 0 255)
) -- see below for more
-information about color structs.
+Data definition:
+
+
+;; Mode is one of the following two symbols or strings:
+;; -- 'solid
+;; -- 'outline
+;; -- "solid"
+;; -- "outline"
+
+
+Interpretation: 'solid
is used for creating solid basic
+shapes; 'outline
is used for creating outlines of basic
+shapes. Strings are used in an analogous manner.
+Data definition:
+
+
+;; Color is one of:
+;; -- a color symbol, e.g., 'blue
+;; -- a color string, e.g., "blue"
+;; -- a color struct, e.g., (make-color 0 0 255), which also denotes blue.
+
+
+Interpretation: Color
arguments are used to paint the shapes
+or their outlines. See below for more information about color structs.
+
+The following predicate precisely specifies what a valid image color is:
+
+The following functions create basic shapes (Image
):
+
-These functions build complex images from the basic
-shapes. When two images are laid on top of each other, the
-are lined up at their pinhole. Most shapes have their
-pinholes in the middle. The exceptions are
-text
and line
which have their
-pinholes in the top-left corner.
+Images have many properties. To understand how functions manipulate and
+create images, we need to understand one of these properties immediately:
+pinholes. Each image, including primitive shapes, come with a
+pinhole. Usually the pinhole is in the center of the shape except for those
+created from line
and text
, which have pinholes
+at the top left. When in doubt you can always find out where the pinhole is
+and even place it somewhere else:
-After an image has been overlaid on another, it is possible
-to recover the position of overlaid image, using the next
-two functions.
-
+The next group of functions build images from images:
- Use png images instead.
+For composite images, it is always possible to determine whether one occurs
+in the other and where:
+
+Two more properties of images are useful for image manipulations: their
+width and height. The two functions for extracting these properties are:
+
+
The shrink functions trim an image by eliminating extraneous pixels.
-These functions provide information about the image's size.
-
-
-
-This functions provide information and manipulate an image's
-pinhole.
-
-
-
-This function precisely specifies what a valid image color is.
-
-
-
-The next functions separate an image into its consitiuent
-colors and combine pixels together to build an image.
+The next functions separate an image into its consitiuent colors and
+combine pixels together to build an image.