{ (define LIBNAME "Images")
(include "head.tinc") }
This teachpack provides primitives for constructing and
manipulating images.
These functions create basic shapes. The mode can be either
'solid
, meaning the shape is filled in, 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.
text
and line
which have their
pinholes in the top-left corner.
After an image has been overlaid on another, it is possible
to recover the position of overlaid image, using the next
two functions.
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.
Like the last group of functions, these functions separate
an image into its consitiuent colors and combine pixels
together to build an image, but these provide alpha-channel
information as well. Alpha channels are a measure of
transparency; 0 indicates fully opaque and 255 indicates
fully transparent.
{(include "foot.tinc")}
{(include "foot.tinc")}