This is the cl-gd Reference Manual, version 0.6.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 03:59:20 2024 GMT+0.
cl-gd/cl-gd.asd
cl-gd/packages.lisp
cl-gd/util.lisp
cl-gd/specials.lisp
cl-gd/init.lisp
cl-gd/gd-uffi.lisp
cl-gd/transform.lisp
cl-gd/images.lisp
cl-gd/colors-aux.lisp
cl-gd/colors.lisp
cl-gd/drawing.lisp
cl-gd/strings.lisp
cl-gd/misc.lisp
cl-gd/animated-gif.lisp
The main system appears first, followed by any subsystem dependency.
cl-gd
Interface to the GD graphics library
0.6.1
uffi
(system).
packages.lisp
(file).
util.lisp
(file).
specials.lisp
(file).
init.lisp
(file).
gd-uffi.lisp
(file).
transform.lisp
(file).
images.lisp
(file).
colors-aux.lisp
(file).
colors.lisp
(file).
drawing.lisp
(file).
strings.lisp
(file).
misc.lisp
(file).
animated-gif.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-gd/cl-gd.asd
cl-gd/packages.lisp
cl-gd/util.lisp
cl-gd/specials.lisp
cl-gd/init.lisp
cl-gd/gd-uffi.lisp
cl-gd/transform.lisp
cl-gd/images.lisp
cl-gd/colors-aux.lisp
cl-gd/colors.lisp
cl-gd/drawing.lisp
cl-gd/strings.lisp
cl-gd/misc.lisp
cl-gd/animated-gif.lisp
cl-gd/cl-gd.asd
cl-gd
(system).
*cl-gd-directory*
(special variable).
cl-gd/util.lisp
packages.lisp
(file).
cl-gd
(system).
convert-to-char-references
(function).
sans
(function).
with-rebinding
(macro).
with-safe-alloc
(macro).
with-unique-names
(macro).
cl-gd/specials.lisp
util.lisp
(file).
cl-gd
(system).
*default-color*
(special variable).
*default-font*
(special variable).
*default-image*
(special variable).
+max-colors+
(constant).
make-anti-aliased
(function).
make-brush
(function).
make-tile
(function).
%make-anti-aliased
(function).
%make-brush
(function).
%make-tile
(function).
*gd-supporting-libraries*
(special variable).
*hyperdoc-base-uri*
(special variable).
*null-image*
(special variable).
*shared-library-directories*
(special variable).
*shared-library-drive-letters*
(special variable).
*shared-library-types*
(special variable).
*transformers*
(special variable).
+anti-aliased+
(constant).
+brushed+
(constant).
+gd-chord+
(constant).
+gd-cmp-background+
(constant).
+gd-cmp-color+
(constant).
+gd-cmp-image+
(constant).
+gd-cmp-interlace+
(constant).
+gd-cmp-num-colors+
(constant).
+gd-cmp-size-x+
(constant).
+gd-cmp-size-y+
(constant).
+gd-cmp-transparent+
(constant).
+gd-cmp-true-color+
(constant).
+gd-disposal-none+
(constant).
+gd-disposal-restore-background+
(constant).
+gd-disposal-restore-previous+
(constant).
+gd-disposal-unknown+
(constant).
+gd-edged+
(constant).
+gd-ftex-linespace+
(constant).
+gd-no-fill+
(constant).
+most-positive-unsigned-byte-32+
(constant).
+radians-to-degree-factor+
(constant).
+styled+
(constant).
+styled-brushed+
(constant).
+tiled+
(constant).
+transparent+
(constant).
anti-aliased-color
(structure).
anti-aliased-color-p
(function).
brush
(structure).
brush-img
(function).
(setf brush-img)
(function).
brush-p
(function).
color
(reader).
(setf color)
(writer).
do-not-blend
(reader).
(setf do-not-blend)
(writer).
hyperdoc-lookup
(function).
image
(structure).
image-p
(function).
img
(reader).
(setf img)
(writer).
make-image
(function).
tile
(structure).
tile-img
(function).
(setf tile-img)
(function).
tile-p
(function).
cl-gd/init.lisp
specials.lisp
(file).
cl-gd
(system).
load-gd-glue
(function).
cl-gd/gd-uffi.lisp
init.lisp
(file).
cl-gd
(system).
gd-free
(function).
gd-image-alpha-blending
(function).
gd-image-arc
(function).
gd-image-bounds-safe
(function).
gd-image-char
(function).
gd-image-char-up
(function).
gd-image-color-allocate
(function).
gd-image-color-allocate-alpha
(function).
gd-image-color-closest
(function).
gd-image-color-closest-alpha
(function).
gd-image-color-closest-hwb
(function).
gd-image-color-deallocate
(function).
gd-image-color-exact
(function).
gd-image-color-resolve
(function).
gd-image-color-resolve-alpha
(function).
gd-image-color-transparent
(function).
gd-image-compare
(function).
gd-image-copy
(function).
gd-image-copy-merge
(function).
gd-image-copy-merge-gray
(function).
gd-image-copy-resampled
(function).
gd-image-copy-resized
(function).
gd-image-copy-rotated
(function).
gd-image-create
(function).
gd-image-create-from-gd-file
(function).
gd-image-create-from-gd2-file
(function).
gd-image-create-from-gd2-part-file
(function).
gd-image-create-from-gif-file
(function).
gd-image-create-from-jpeg-file
(function).
gd-image-create-from-png-file
(function).
gd-image-create-from-xbm-file
(function).
gd-image-create-from-xpm
(function).
gd-image-create-true-color
(function).
gd-image-destroy
(function).
gd-image-fill
(function).
gd-image-fill-to-border
(function).
gd-image-filled-arc
(function).
gd-image-filled-ellipse
(function).
gd-image-filled-polygon
(function).
gd-image-filled-rectangle
(function).
gd-image-gd-ptr
(function).
gd-image-gd2-ptr
(function).
gd-image-get-alpha
(function).
gd-image-get-blue
(function).
gd-image-get-clip
(function).
gd-image-get-colors-total
(function).
gd-image-get-green
(function).
gd-image-get-interlaced
(function).
gd-image-get-pixel
(function).
gd-image-get-red
(function).
gd-image-get-sx
(function).
gd-image-get-sy
(function).
gd-image-get-transparent
(function).
gd-image-gif-anim-add
(function).
gd-image-gif-anim-begin-wrap
(function).
gd-image-gif-anim-end-wrap
(function).
gd-image-gif-ptr
(function).
gd-image-interlace
(function).
gd-image-jpeg-ptr
(function).
gd-image-line
(function).
gd-image-palette-copy
(function).
gd-image-png-ptr
(function).
gd-image-png-ptr-ex
(function).
gd-image-polygon
(function).
gd-image-rectangle
(function).
gd-image-save-alpha
(function).
gd-image-set-anti-aliased
(function).
gd-image-set-anti-aliased-do-not-blend
(function).
gd-image-set-brush
(function).
gd-image-set-clip
(function).
gd-image-set-pixel
(function).
gd-image-set-style
(function).
gd-image-set-thickness
(function).
gd-image-set-tile
(function).
gd-image-string
(function).
gd-image-string-ft
(function).
gd-image-string-ft-ex
(function).
gd-image-string-up
(function).
gd-image-true-color-to-palette
(function).
gd-image-wbmp-ptr
(function).
pixels-array
(type).
pixels-row
(type).
t-pixels-array
(type).
t-pixels-row
(type).
cl-gd/transform.lisp
gd-uffi.lisp
(file).
cl-gd
(system).
with-transformation
(macro).
without-transformations
(macro).
angle-transformer
(reader method).
h-inv-transformer
(reader method).
h-transformer
(reader method).
image
(reader method).
round-to-signed-byte-32
(function).
transformer
(class).
w-inv-transformer
(reader method).
w-transformer
(reader method).
with-transformed-alternative
(macro).
x-inv-transformer
(reader method).
x-transformer
(reader method).
y-inv-transformer
(reader method).
y-transformer
(reader method).
cl-gd/images.lisp
transform.lisp
(file).
cl-gd
(system).
create-image
(function).
create-image-from-file
(function).
create-image-from-gd2-part
(function).
destroy-image
(function).
image-height
(function).
image-size
(function).
image-width
(function).
print-object
(method).
with-default-image
(macro).
with-image
(macro).
with-image*
(macro).
with-image-from-file
(macro).
with-image-from-file*
(macro).
with-image-from-gd2-part
(macro).
with-image-from-gd2-part*
(macro).
write-gd-to-stream
(function).
write-gd2-to-stream
(function).
write-gif-to-stream
(function).
write-image-to-file
(function).
write-image-to-stream
(function).
write-jpeg-to-stream
(function).
write-png-to-stream
(function).
write-wbmp-to-stream
(function).
make-stream-fn
(macro).
cl-gd/colors-aux.lisp
images.lisp
(file).
cl-gd
(system).
current-brush
(function).
(setf current-brush)
(function).
current-style
(function).
(setf current-style)
(generic function).
current-style*
(function).
current-tile
(function).
(setf current-tile)
(function).
resolve-c-color
(function).
set-anti-aliased
(function).
with-color-argument
(macro).
cl-gd/colors.lisp
colors-aux.lisp
(file).
cl-gd
(system).
allocate-color
(function).
alpha-blending-p
(function).
(setf alpha-blending-p)
(function).
color-component
(function).
color-components
(function).
deallocate-color
(function).
find-color
(function).
find-color-from-image
(function).
number-of-colors
(function).
save-alpha-p
(function).
(setf save-alpha-p)
(function).
thickness
(function).
(setf thickness)
(function).
transparent-color
(function).
(setf transparent-color)
(function).
true-color-p
(function).
with-default-color
(macro).
with-thickness
(macro).
cl-gd/drawing.lisp
colors.lisp
(file).
cl-gd
(system).
clipping-rectangle
(function).
(setf clipping-rectangle)
(function).
clipping-rectangle*
(function).
draw-arc
(function).
draw-filled-circle
(function).
draw-filled-ellipse
(function).
draw-line
(function).
draw-polygon
(generic function).
draw-rectangle
(function).
draw-rectangle*
(function).
fill-image
(function).
get-pixel
(function).
set-clipping-rectangle*
(function).
set-pixel
(function).
set-pixels
(generic function).
with-clipping-rectangle
(macro).
with-clipping-rectangle*
(macro).
cl-gd/strings.lisp
drawing.lisp
(file).
cl-gd
(system).
draw-character
(function).
draw-freetype-string
(function).
draw-string
(function).
with-default-font
(macro).
cl-gd/misc.lisp
strings.lisp
(file).
cl-gd
(system).
copy-image
(function).
copy-palette
(function).
differentp
(function).
do-pixels
(macro).
do-rows
(macro).
interlacedp
(function).
(setf interlacedp)
(function).
true-color-to-palette
(function).
cl-gd/animated-gif.lisp
misc.lisp
(file).
cl-gd
(system).
*current-animation*
(special variable).
add-image-to-animation
(function).
with-animated-gif
(macro).
Packages are listed by definition order.
cl-gd.system
asdf/interface
.
common-lisp
.
*cl-gd-directory*
(special variable).
cl-gd
common-lisp
.
uffi
.
*default-color*
(special variable).
*default-font*
(special variable).
*default-image*
(special variable).
+max-colors+
(constant).
allocate-color
(function).
alpha-blending-p
(function).
(setf alpha-blending-p)
(function).
clipping-rectangle
(function).
(setf clipping-rectangle)
(function).
clipping-rectangle*
(function).
color-component
(function).
color-components
(function).
copy-image
(function).
copy-palette
(function).
create-image
(function).
create-image-from-file
(function).
create-image-from-gd2-part
(function).
deallocate-color
(function).
destroy-image
(function).
differentp
(function).
do-pixels
(macro).
do-rows
(macro).
draw-arc
(function).
draw-character
(function).
draw-filled-circle
(function).
draw-filled-ellipse
(function).
draw-freetype-string
(function).
draw-line
(function).
draw-polygon
(generic function).
draw-rectangle
(function).
draw-rectangle*
(function).
draw-string
(function).
fill-image
(function).
find-color
(function).
find-color-from-image
(function).
get-pixel
(function).
image-height
(function).
image-size
(function).
image-width
(function).
interlacedp
(function).
(setf interlacedp)
(function).
make-anti-aliased
(function).
make-brush
(function).
make-tile
(function).
number-of-colors
(function).
save-alpha-p
(function).
(setf save-alpha-p)
(function).
set-clipping-rectangle*
(function).
set-pixel
(function).
set-pixels
(generic function).
thickness
(function).
(setf thickness)
(function).
transparent-color
(function).
(setf transparent-color)
(function).
true-color-p
(function).
true-color-to-palette
(function).
with-clipping-rectangle
(macro).
with-clipping-rectangle*
(macro).
with-default-color
(macro).
with-default-font
(macro).
with-default-image
(macro).
with-image
(macro).
with-image*
(macro).
with-image-from-file
(macro).
with-image-from-file*
(macro).
with-image-from-gd2-part
(macro).
with-image-from-gd2-part*
(macro).
with-thickness
(macro).
with-transformation
(macro).
without-transformations
(macro).
write-gd-to-stream
(function).
write-gd2-to-stream
(function).
write-gif-to-stream
(function).
write-image-to-file
(function).
write-image-to-stream
(function).
write-jpeg-to-stream
(function).
write-png-to-stream
(function).
write-wbmp-to-stream
(function).
%make-anti-aliased
(function).
%make-brush
(function).
%make-tile
(function).
*current-animation*
(special variable).
*gd-supporting-libraries*
(special variable).
*hyperdoc-base-uri*
(special variable).
*null-image*
(special variable).
*shared-library-directories*
(special variable).
*shared-library-drive-letters*
(special variable).
*shared-library-types*
(special variable).
*transformers*
(special variable).
+anti-aliased+
(constant).
+brushed+
(constant).
+gd-chord+
(constant).
+gd-cmp-background+
(constant).
+gd-cmp-color+
(constant).
+gd-cmp-image+
(constant).
+gd-cmp-interlace+
(constant).
+gd-cmp-num-colors+
(constant).
+gd-cmp-size-x+
(constant).
+gd-cmp-size-y+
(constant).
+gd-cmp-transparent+
(constant).
+gd-cmp-true-color+
(constant).
+gd-disposal-none+
(constant).
+gd-disposal-restore-background+
(constant).
+gd-disposal-restore-previous+
(constant).
+gd-disposal-unknown+
(constant).
+gd-edged+
(constant).
+gd-ftex-linespace+
(constant).
+gd-no-fill+
(constant).
+most-positive-unsigned-byte-32+
(constant).
+radians-to-degree-factor+
(constant).
+styled+
(constant).
+styled-brushed+
(constant).
+tiled+
(constant).
+transparent+
(constant).
add-image-to-animation
(function).
angle-transformer
(generic reader).
anti-aliased-color
(structure).
anti-aliased-color-p
(function).
brush
(structure).
brush-img
(function).
(setf brush-img)
(function).
brush-p
(function).
color
(reader).
(setf color)
(writer).
convert-to-char-references
(function).
current-brush
(function).
(setf current-brush)
(function).
current-style
(function).
(setf current-style)
(generic function).
current-style*
(function).
current-tile
(function).
(setf current-tile)
(function).
do-not-blend
(reader).
(setf do-not-blend)
(writer).
gd-free
(function).
gd-image-alpha-blending
(function).
gd-image-arc
(function).
gd-image-bounds-safe
(function).
gd-image-char
(function).
gd-image-char-up
(function).
gd-image-color-allocate
(function).
gd-image-color-allocate-alpha
(function).
gd-image-color-closest
(function).
gd-image-color-closest-alpha
(function).
gd-image-color-closest-hwb
(function).
gd-image-color-deallocate
(function).
gd-image-color-exact
(function).
gd-image-color-resolve
(function).
gd-image-color-resolve-alpha
(function).
gd-image-color-transparent
(function).
gd-image-compare
(function).
gd-image-copy
(function).
gd-image-copy-merge
(function).
gd-image-copy-merge-gray
(function).
gd-image-copy-resampled
(function).
gd-image-copy-resized
(function).
gd-image-copy-rotated
(function).
gd-image-create
(function).
gd-image-create-from-gd-file
(function).
gd-image-create-from-gd2-file
(function).
gd-image-create-from-gd2-part-file
(function).
gd-image-create-from-gif-file
(function).
gd-image-create-from-jpeg-file
(function).
gd-image-create-from-png-file
(function).
gd-image-create-from-xbm-file
(function).
gd-image-create-from-xpm
(function).
gd-image-create-true-color
(function).
gd-image-destroy
(function).
gd-image-fill
(function).
gd-image-fill-to-border
(function).
gd-image-filled-arc
(function).
gd-image-filled-ellipse
(function).
gd-image-filled-polygon
(function).
gd-image-filled-rectangle
(function).
gd-image-gd-ptr
(function).
gd-image-gd2-ptr
(function).
gd-image-get-alpha
(function).
gd-image-get-blue
(function).
gd-image-get-clip
(function).
gd-image-get-colors-total
(function).
gd-image-get-green
(function).
gd-image-get-interlaced
(function).
gd-image-get-pixel
(function).
gd-image-get-red
(function).
gd-image-get-sx
(function).
gd-image-get-sy
(function).
gd-image-get-transparent
(function).
gd-image-gif-anim-add
(function).
gd-image-gif-anim-begin-wrap
(function).
gd-image-gif-anim-end-wrap
(function).
gd-image-gif-ptr
(function).
gd-image-interlace
(function).
gd-image-jpeg-ptr
(function).
gd-image-line
(function).
gd-image-palette-copy
(function).
gd-image-png-ptr
(function).
gd-image-png-ptr-ex
(function).
gd-image-polygon
(function).
gd-image-rectangle
(function).
gd-image-save-alpha
(function).
gd-image-set-anti-aliased
(function).
gd-image-set-anti-aliased-do-not-blend
(function).
gd-image-set-brush
(function).
gd-image-set-clip
(function).
gd-image-set-pixel
(function).
gd-image-set-style
(function).
gd-image-set-thickness
(function).
gd-image-set-tile
(function).
gd-image-string
(function).
gd-image-string-ft
(function).
gd-image-string-ft-ex
(function).
gd-image-string-up
(function).
gd-image-true-color-to-palette
(function).
gd-image-wbmp-ptr
(function).
h-inv-transformer
(generic reader).
h-transformer
(generic reader).
hyperdoc-lookup
(function).
image
(generic reader).
image
(structure).
image-p
(function).
img
(reader).
(setf img)
(writer).
load-gd-glue
(function).
make-image
(function).
make-stream-fn
(macro).
pixels-array
(type).
pixels-row
(type).
resolve-c-color
(function).
round-to-signed-byte-32
(function).
sans
(function).
set-anti-aliased
(function).
t-pixels-array
(type).
t-pixels-row
(type).
tile
(structure).
tile-img
(function).
(setf tile-img)
(function).
tile-p
(function).
transformer
(class).
w-inv-transformer
(generic reader).
w-transformer
(generic reader).
with-animated-gif
(macro).
with-color-argument
(macro).
with-rebinding
(macro).
with-safe-alloc
(macro).
with-transformed-alternative
(macro).
with-unique-names
(macro).
x-inv-transformer
(generic reader).
x-transformer
(generic reader).
y-inv-transformer
(generic reader).
y-transformer
(generic reader).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Maximum number of colors for palette-based images.
The default color. This special variable is usually bound by WITH-COLOR.
The default font. This special variable is usually bound by WITH-FONT.
The default image. This special variable is usually bound by WITH-IMAGE or WITH-IMAGE-FROM-FILE.
Executes BODY with the clipping rectangle of IMAGE set to RECTANGLE which should be a list (X1 Y1 X2 Y2). The previous clipping rectangle is guaranteed to be restored before the macro exits.
Executes BODY with the clipping rectangle of IMAGE set to the rectangle with upper left corner (X1, Y1) and lower right corner (X2, Y2). The previous clipping rectangle is guaranteed to be restored before the macro exits.
Executes BODY with *DEFAULT-COLOR* bound to COLOR so that you don’t have to provide the COLOR keyword/optional argument to drawing functions.
Execute BODY with *DEFAULT-FONT* bound to FONT so that you don’t have to provide the FONT keyword/optional argument to string functions. But note that the fonts used for DRAW-STRING/DRAW-CHARACTER and DRAW-FREETYPE-STRING are incompatible.
Executes BODY with *DEFAULT-IMAGE* bound to IMAGE so that you don’t have to provide the IMAGE keyword/optional argument to CL-GD functions.
Creates an image with size WIDTH x HEIGHT, and executes BODY with the image bound to NAME. If TRUE-COLOR is true, creates a true color image. The image is guaranteed to be destroyed before this macro exits.
Creates an image with size WIDTH x HEIGHT and executes BODY with the image bound to *DEFAULT-IMAGE*. If TRUE-COLOR is true, creates a true color image. The image is guaranteed to be destroyed before this macro exits.
Creates an image from the file specified by FILE-NAME (which is either a pathname or a string) and executes BODY with the image bound to NAME. The type of the image can be provied as TYPE or otherwise it will be guessed from the PATHNAME-TYPE of FILE-NAME. The image is guaranteed to be destroyed before this macro exits.
Creates an image from the file specified by FILE-NAME (which is either a pathname or a string) and executes BODY with the image bound to *DEFAULT-IMAGE*. The type of the image can be provied as TYPE or otherwise it will be guessed from the PATHNAME-TYPE of FILE-NAME. The image is guaranteed to be destroyed before this macro exits.
Creates an image from the part of the GD2 file FILE-NAME (which is either a pathname or a string) specified SRC-X, SRC-Y, WIDTH, and HEIGHT and executes BODY with the image bound to NAME. The type of the image can be provied as TYPE or otherwise it will be guessed from the PATHNAME-TYPE of FILE-NAME. The image is guaranteed to be destroyed before this macro exits.
Creates an image from the part of the GD2 file FILE-NAME (which is either a pathname or a string) specified SRC-X, SRC-Y, WIDTH, and HEIGHT and executes BODY with the image bound to *DEFAULT-IMAGE*. The type of the image can be provied as TYPE or otherwise it will be guessed from the PATHNAME-TYPE of FILE-NAME. The image is guaranteed to be destroyed before this macro exits.
Executes BODY with the current line width of IMAGE set to THICKNESS. The image’s previous line width is guaranteed to be restored before the macro exits. Note that the line width is measured in pixels and is not affected by WITH-TRANSFORMATION.
Executes BODY such that all points and width/height data are subject to a simple affine transformation defined by the keyword parameters. The new x-axis of IMAGE will start at X1 and end at X2 and have length WIDTH. The new y-axis of IMAGE will start at Y1 and end at Y2 and have length HEIGHT. In both cases it suffices to provide two of the three values - if you provide all three they have to match. If REVERSE-X is false the x-axis will be oriented as usual in Cartesian coordinates, otherwise its direction will be reversed. The same applies to REVERSE-Y, of course. If RADIANS is true angles inside of BODY will be assumed to be provided in radians, otherwise in degrees.
Executes BODY without any transformations applied.
Finds the first available color index in the image IMAGE specified, sets its RGB values to those requested (255 is the maximum for each), and returns the index of the new color table entry, or an RGBA value in the case of a true color image. In either case you can then use the returned value as a COLOR parameter to drawing functions. When creating a new palette-based image, the first time you invoke this function you are setting the background color for that image. If ALPHA (not greater than 127) is provided, an RGBA color will always be allocated. If all +GD-MAX-COLORS+ have already been allocated this function will, depending on the value of ERRORP, either raise an error or return NIL.
Returns whether pixels drawn on IMAGE will be copied literally including alpha channel information (return value is false) or if their alpha channel information will determine how much of the underlying color will shine through (return value is true). This is only meaningful for true color images.
Determines whether pixels drawn on IMAGE will be copied literally including alpha channel information (if BLENDING is false) or if their alpha channel information will determine how much of the underlying color will shine through (if BLENDING is true). This is only meaningful for true color images.
Returns the clipping rectangle of IMAGE as a list of four elements.
Sets the clipping rectangle of IMAGE where rectangle should be a list (X1 Y1 X2 Y2).
Returns the clipping rectangle of IMAGE as four values.
Returns the specified color component of COLOR. COMPONENT can be one of :RED, :GREEN, :BLUE, and :ALPHA.
Returns a list of the color components of COLOR. The components are in the order red, green, blue, alpha.
Copies (a part of) image SOURCE into image DESTINATION. Copies the
rectangle with the upper left corner (SOURCE-X,SOURCE-Y) and size
WIDTH x HEIGHT to the rectangle with the upper left corner
(DEST-X,DEST-Y).
If RESAMPLE is true pixel colors will be smoothly interpolated. If
RESIZE is true the copied rectangle will be strechted or shrinked so
that its size is DEST-WIDTH x DEST-HEIGHT. If ROTATE is true the image
will be rotated by ANGLE. In this particular case DEST-X and DEST-Y
specify the CENTER of the copied image rather than its upper left
corner! If MERGE is true it has to be an integer in the range 0-100
and the two images will be ’merged’ by the amount specified. If MERGE
is 100 then the source image will simply be copied. If instead
MERGE-GRAY is true the hue of the source image is preserved by
converting the destination area to gray pixels before merging.
The keyword options RESAMPLE, ROTATE, RESIZE, MERGE, and MERGE-GRAY are mutually exclusive (with the exception of RESAMPLE and RESIZE). ANGLE is assumed to be specified in degrees if it’s an integer, and in radians otherwise.
Copies palette of image SOURCE to image DESTINATION attempting to match the colors in the target image to the colors in the source palette.
Allocates and returns a GD image structure with size WIDTH x HEIGHT. Creates a true color image if TRUE-COLOR is true. You are responsible for destroying the image after you’re done with it. It is advisable to use WITH-IMAGE instead.
Creates an image from the file specified by FILE-NAME (which is either a pathname or a string). The type of the image can be provided as TYPE or otherwise it will be guessed from the PATHNAME-TYPE of FILE-NAME. You are responsible for destroying the image after you’re done with it. It is advisable to use WITH-IMAGE-FROM-FILE instead.
Creates an image from the part of the GD2 file FILE-NAME (which is either a pathname or a string) specified by SRC-X, SRC-Y, WIDTH, and HEIGHT. You are responsible for destroying the image after you’re done with it. It is advisable to use WITH-IMAGE-FROM-GD2-PART instead.
Marks the specified color COLOR as being available for reuse. No attempt will be made to determine whether the color index is still in use in the image IMAGE.
Destroys (deallocates) IMAGE which has been created by CREATE-IMAGE, CREATE-IMAGE-FROM-FILE, or CREATE-IMAGE-FROM-GD2-PART.
Returns false if the two images won’t appear different when displayed. Otherwise the return value is a list of keywords describing the differences between the images.
Draws a partial ellipse centered at (CENTER-X, CENTER-Y) with width WIDTH and height HEIGHT. The arc begins at angle START and ends at angle END. If STRAIGHT-LINE is true the start and end points are just connected with a straight line. If CENTER-CONNECT is true, they are connected to the center (which is useful to create ’pie slices’). If FILLED is true the arc will be filled with COLOR, otherwise it will be outlined.
Draws the character CHAR from font FONT in color COLOR at position (X,Y). If UP is true the character will be drawn from bottom to top (rotated 90 degrees). FONT must be one of :TINY, :SMALL, :MEDIUM, :LARGE, :GIANT.
Draws a filled circle centered at (CENTER-X, CENTER-Y) with radius RADIUS.
Draws a filled ellipse centered at (CENTER-X, CENTER-Y) with width WIDTH and height HEIGHT.
Draws the string STRING in color COLOR at position (X,Y) using the
FreeType library. FONT-NAME is the full path (a pathname or a string)
to a TrueType font file, or a font face name if the GDFONTPATH
environment variable or FreeType’s DEFAULT_FONTPATH variable have been
set intelligently. The string may be arbitrarily scaled (POINT-SIZE)
and rotated (ANGLE in radians). The direction of rotation is
counter-clockwise, with 0 radians (0 degrees) at 3 o’clock and PI/2
radians (90 degrees) at 12 o’clock. Note that the ANGLE argument is
purposefully _not_ affected by WITH-TRANSFORMATION. If ANTI-ALIASED if
false, anti-aliasing is disabled. It is enabled by default. To output
multiline text with a specific line spacing, provide a value for
LINE-SPACING, expressed as a multiple of the font height. The default
is to use 1.05. The string may contain XML character entity references
like "À". If CONVERT-CHARS is true (which is the default)
characters of STRING with CHAR-CODE greater than 127 are converted
accordingly. This of course pre-supposes that your Lisp’s CHAR-CODE
function returns ISO/IEC 10646 (Unicode) character codes.
The return value is an array containing 8 elements representing the 4 corner coordinates (lower left, lower right, upper right, upper left) of the bounding rectangle around the string that was drawn. The points are relative to the text regardless of the angle, so "upper left" means in the top left-hand corner seeing the text horizontally. Set DO-NOT-DRAW to true to get the bounding rectangle without rendering. This is a relatively cheap operation if followed by a rendering of the same string, because of the caching of the partial rendering during bounding rectangle calculation.
Draws a line with color COLOR from point (X1,Y1) to point (X2,Y2).
Draws a rectangle with upper left corner (X1,Y1) and lower right corner (X2,Y2) where RECTANGLE is the list (X1 Y1 X2 Y2). If FILLED is true the rectangle will be filled with COLOR, otherwise it will be outlined.
Draws a rectangle with upper left corner (X1,Y1) and lower right corner (X2,Y2). If FILLED is true the rectangle will be filled with COLOR, otherwise it will be outlined.
Draws the string STRING in color COLOR at position (X,Y). If UP is true the character will be drawn from bottom to top (rotated 90 degrees). FONT must be one of :TINY, :SMALL, :MEDIUM, :LARGE, :GIANT.
Floods a portion of the image IMAGE with the color COLOR beginning at point (X, Y) and extending into the surrounding region. If BORDER is true it must be a color and the filling will stop at the specified border color. Otherwise only points with the same color as the starting point will be colored.
Tries to find and/or allocate a color from IMAGE’s color
palette. If EXACT is true, the color will only be returned if it is
already allocated. If EXACT is NIL, a color which is ’close’ to the
color specified by RED, GREEN, and BLUE (and probably ALPHA) might be
returned (unless there aren’t any colors allocated in the image
yet). If HWB is true, the ’closeness’ will be determined by hue,
whiteness, and blackness, otherwise by the Euclidian distance of the
RGB values. If RESOLVE is true a color (probably a new one) will
always be returned, otherwise the result of this function might be
NIL. If ALPHA (not greater than 127) is provided, an RGBA color (or
NIL) will be returned.
ALPHA, EXACT, and HWB are mutually exclusive. RESOLVE can’t be used together with EXACT or HWB.
Returns the color in IMAGE corresponding to COLOR in SOURCE-IMAGE. The keyword parameters are passed to FIND-COLOR.
Gets the color associated with point (X,Y).
Returns width of IMAGE.
Returns whether IMAGE will be stored in an interlaced fashion.
Sets whether IMAGE will be stored in an interlaced fashion.
Returns the number of color allocated in IMAGE. Returns NIL if IMAGE is a true color image.
Returns whether PNG images will be saved with full alpha channel information.
Determines whether PNG images will be saved with full alpha channel information.
Sets the clipping rectangle of IMAGE to be the rectangle with upper left corner (X1, Y1) and lower right corner (X2, Y2).
Draws a pixel with color COLOR at point (X,Y).
Gets the width of lines drawn by the drawing functions. Note that this is measured in pixels and is NOT affected by WITH-TRANSFORMATION.
Sets the width of lines drawn by the drawing functions. Note that THICKNESS is measured in pixels and is NOT affected by WITH-TRANSFORMATION.
Returns the transparent color of IMAGE (or NIL if there is none).
Makes COLOR the transparent color of IMAGE. If COLOR is NIL the image won’t have a transparent color. Note that JPEG images don’t support transparency.
Returns true iff IMAGE is a true color image.
Converts the true color image IMAGE to a palette-based image using a high-quality two-pass quantization routine. If DITHER is true, the image will be dithered to approximate colors better, at the expense of some obvious "speckling." COLORS-WANTED can be any positive integer up to 256 (which is the default). If the original source image includes photographic information or anything that came out of a JPEG, 256 is strongly recommended. 100% transparency of a single transparent color in the original true color image will be preserved. There is no other support for preservation of alpha channel or transparency in the destination image.
Writes image IMAGE to stream STREAM as GD. STREAM
must be a character stream or a binary stream of element type
(UNSIGNED-BYTE 8). If STREAM is a character stream, the user of this
function has to make sure the external format yields faithful output
of all 8-bit characters.
Writes image IMAGE to stream STREAM as GD2. STREAM
must be a character stream or a binary stream of element type
(UNSIGNED-BYTE 8). If STREAM is a character stream, the user of this
function has to make sure the external format yields faithful output
of all 8-bit characters.
Writes image IMAGE to stream STREAM as GIF. STREAM
must be a character stream or a binary stream of element type
(UNSIGNED-BYTE 8). If STREAM is a character stream, the user of this
function has to make sure the external format yields faithful output
of all 8-bit characters.
Writes image to the file specified by FILE-NAME (a pathname or a string). The TYPE argument is interpreted as in WRITE-IMAGE-TO-STREAM. If it is not provided it is guessed from the PATHNAME-TYPE of FILE-NAME. The IF-EXISTS keyword argument is given to OPEN. Other keyword argument like QUALITY or COMPRESSION-LEVEL can be provided depending on the images’s type.
Writes image to STREAM. The type of the image is determined by TYPE which must be one of :JPG, :JPEG, :PNG, :WBMP, :GD, or :GD2. STREAM must be a character stream or a binary stream of element type (UNSIGNED-BYTE 8). If STREAM is a character stream, the user of this function has to make sure the external format yields faithful output of all 8-bit characters.
Writes image IMAGE to stream STREAM as JPEG. If
QUALITY is not specified, the default IJG JPEG quality value is
used. Otherwise, for practical purposes, quality should be a value in
the range 0-95. STREAM must be a character stream or a binary stream
of element type (UNSIGNED-BYTE 8). If STREAM is a character stream,
the user of this function has to make sure the external format is
yields faithful output of all 8-bit characters.
Writes image IMAGE to stream STREAM as PNG. If
COMPRESSION-LEVEL is not specified, the default compression level at
the time zlib was compiled on your system will be used. Otherwise, a
compression level of 0 means ’no compression’, a compression level of
1 means ’compressed, but as quickly as possible’, a compression level
of 9 means ’compressed as much as possible to produce the smallest
possible file.’ STREAM must be a character stream or a binary stream
of element type (UNSIGNED-BYTE 8). If STREAM is a character stream,
the user of this function has to make sure the external format yields
faithful output of all 8-bit characters.
Writes image IMAGE to stream STREAM as WBMP. STREAM
must be a character stream or a binary stream of element type
(UNSIGNED-BYTE 8). If STREAM is a character stream, the user of this
function has to make sure the external format yields faithful output
of all 8-bit characters. WBMP file support is black and white
only. The color index specified by the FOREGOUND argument is the
"foreground," and only pixels of this color will be set in the WBMP
file
Draws a polygon with the VERTICES (at least three)
specified as a list (x1 y1 x2 y2 ...) or as a vector #(x1 y1 x2 y2
...). If FILLED is true the polygon will be filled with COLOR,
otherwise it will be outlined. If START and/or END are specified then
only the corresponding part of VERTICES is used as input.
Draws a list (X1 Y1 X2 Y2 ...) or vector #(X1 Y1 X2 Y2 ...) of pixels.
Special ’color’ for anti-aliased lines.
Special ’color’ for lines drawn with brush.
Used internally by GD-FILLED-ARC
Background color is different.
Image colors differ.
Images will appear different when displayed.
Interlace settings are different.
Number of colors in palette differ.
Image widths differ.
Image heights differ.
Transparent color is different.
One image is a true-color image, the other one is palette-based.
Used internally by GD-FILLED-ARC
Indicate line-spacing for FreeType library.
Used internally by GD-FILLED-ARC
Name says it all...
Factor to convert from radians to degrees.
Special ’color’ for styled lines.
Special ’color’ for lines drawn with styled brush.
Special fill ’color’ used for tiles.
Special ’color’ used in GD function ’gdImageSetStyle’ for transparent color.
The libraries which are needed by cl-gd-glues.so (and GD itself). Only needed for Python-based Lisps like CMUCL, SBCL, or SCL.
A ’null’ image which might be useful for DRAW-FREETYPE-STRING.
Stack of currently active transformer objects.
Internal macro used to generate WRITE-JPEG-TO-STREAM and friends.
Internal macro used to give correct color arguments to enclosed foreign functions. Assumes fixed names COLOR and IMAGE.
REBINDING ( { var | (var prefix) }* ) form*
Evaluates a series of forms in the lexical environment that is formed by adding the binding of each VAR to a fresh, uninterned symbol, and the binding of that fresh, uninterned symbol to VAR’s original value, i.e., its value in the current lexical environment.
The uninterned symbol is created as if by a call to GENSYM with the
string denoted by PREFIX - or, if PREFIX is not supplied, the string
denoted by VAR - as argument.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).
Internal macro used to make functions transformation-aware. TRANSFORMATION is a list of (EXPR TRANSFORMATION) pairs where each EXPR will be replaced by the transformation denoted by TRANSFORMATION.
Syntax: WITH-UNIQUE-NAMES ( { var | (var x) }* ) declaration* form*
Executes a series of forms with each VAR bound to a fresh,
uninterned symbol. The uninterned symbol is as if returned by a call
to GENSYM with the string denoted by X - or, if X is not supplied, the
string denoted by VAR - as argument.
The variable bindings created are lexical unless special declarations
are specified. The scopes of the name bindings and declarations do not
include the Xs.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).
Returns a string where all characters of STRING with CHAR-CODE greater than 127 are converted to XML character entities.
Returns the GD image which is the current brush of IMAGE (or NIL if there is no current brush).
Sets BRUSH (which must be a GD image) to be the current brush for IMAGE.
Returns the current style of IMAGE as a list.
Returns the current style of IMAGE as an array.
Returns the GD image which is the current tile of IMAGE (or NIL if there is no current tile).
Sets TILE (which must be a GD image) to be the current tile for IMAGE.
Load the little glue library we have to create for the image input functions.
Accepts a CL-GD ’color’ COLOR and returns the corresponding argument for GD, modifying internal slots of IMAGE if needed.
Like ROUND but make sure result isn’t longer than 32 bits.
Returns PLIST with keyword arguments from KEYS removed.
Set COLOR to be the current anti-aliased color of IMAGE. DO-NOT-BLEND (if provided) is the background color anti-aliased lines stand out against clearly.
transformer
)) ¶automatically generated reader method
Sets STYLE to be the current drawing style for
IMAGE. STYLE can be a LIST or a VECTOR. Each element of STYLE is
either a color or NIL (for transparent pixels).
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
transformer
)) ¶automatically generated reader method
Class used internally for WITH-TRANSFORMATION macro.
function
:w-transformer
This slot is read-only.
function
:h-transformer
This slot is read-only.
function
:x-transformer
This slot is read-only.
function
:y-transformer
This slot is read-only.
function
:w-inv-transformer
This slot is read-only.
function
:h-inv-transformer
This slot is read-only.
function
:x-inv-transformer
This slot is read-only.
function
:y-inv-transformer
This slot is read-only.
function
:angle-transformer
This slot is read-only.
Jump to: | %
(
A B C D F G H I L M N P R S T W X Y |
---|
Jump to: | %
(
A B C D F G H I L M N P R S T W X Y |
---|
Jump to: | *
+
A C D H I S W X Y |
---|
Jump to: | *
+
A C D H I S W X Y |
---|
Jump to: | A B C D F G I M P S T U |
---|
Jump to: | A B C D F G I M P S T U |
---|