The cl-gd Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-gd Reference Manual

This is the cl-gd Reference Manual, version 0.6.1, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 11:06:29 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Complete documentation for CL-GD can be found in the 'doc'
directory.

CL-GD also supports Nikodemus Siivola's HYPERDOC, see
 and
.

1. Installation (see doc/index.html for Windows instructions)

1.1. Download and install a recent version of GD and its supporting
     libraries.  Please use your operating system's package manager to
     install the "development" version of the GD library.  On Ubuntu
     Linux, this can be achieved with the command:

       apt-get install libgd2-xpm-dev

     GD depends on several other libraries to handle different
     graphics formats.  These should be installed by your package
     manager automatically.  If you cannot use or do not have a
     package manager that includes GD, you'll have to follow the GD
     installation instructions (http://www.boutell.com/gd/).  Note
     that you won't be able to compile CL-GD unless you have installed
     all supporting libraries. This is different from using GD
     directly from C where you only have to install the libraries you
     intend to use.

1.2. Install cl-gd and its Lisp dependencies using quicklisp
     (http://quicklisp.org/).

1.3. Compile cl-gd-glue.c into a shared library for your platform.  A
     simple Makefile is included in the cl-gd source directory.

     For FreeBSD and Linux, just type

       make

     For OSX, type 

       make cl-gd-glue.dylib


2. Test

CL-GD comes with a simple test suite that can be used to check if it's
basically working. Note that this'll only test a subset of CL-GD. To
run the tests load CL-GD and then

       (asdf:oos 'asdf:load-op :cl-gd-test)
       (cl-gd-test:test)

If you have the georgiab.ttf TrueType font from Microsoft you can also
check the FreeType support of CL-GD with

       (cl-gd-test:test #p"/usr/X11R6/lib/X11/fonts/truetype/georgiab.ttf")

where you should obviously replace the path above with the full path
to the font on your machine.

(See the note about failed tests in the documentation.)

Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-gd

Description

Interface to the GD graphics library

Version

0.6.1

Dependency

uffi

Source

cl-gd.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-gd.asd

Location

cl-gd.asd

Systems

cl-gd (system)

Packages

cl-gd.system

Exported Definitions

*cl-gd-directory* (special variable)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-gd/packages.lisp

Parent

cl-gd (system)

Location

packages.lisp

Packages

cl-gd


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-gd/util.lisp

Dependency

packages.lisp (file)

Parent

cl-gd (system)

Location

util.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 cl-gd/specials.lisp

Dependency

util.lisp (file)

Parent

cl-gd (system)

Location

specials.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.5 cl-gd/init.lisp

Dependency

specials.lisp (file)

Parent

cl-gd (system)

Location

init.lisp

Internal Definitions

load-gd-glue (function)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.6 cl-gd/gd-uffi.lisp

Dependency

init.lisp (file)

Parent

cl-gd (system)

Location

gd-uffi.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.7 cl-gd/transform.lisp

Dependency

gd-uffi.lisp (file)

Parent

cl-gd (system)

Location

transform.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.8 cl-gd/images.lisp

Dependency

transform.lisp (file)

Parent

cl-gd (system)

Location

images.lisp

Exported Definitions
Internal Definitions

make-stream-fn (macro)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.9 cl-gd/colors-aux.lisp

Dependency

images.lisp (file)

Parent

cl-gd (system)

Location

colors-aux.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.10 cl-gd/colors.lisp

Dependency

colors-aux.lisp (file)

Parent

cl-gd (system)

Location

colors.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.11 cl-gd/drawing.lisp

Dependency

colors.lisp (file)

Parent

cl-gd (system)

Location

drawing.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.12 cl-gd/strings.lisp

Dependency

drawing.lisp (file)

Parent

cl-gd (system)

Location

strings.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.13 cl-gd/misc.lisp

Dependency

strings.lisp (file)

Parent

cl-gd (system)

Location

misc.lisp

Exported Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.14 cl-gd/animated-gif.lisp

Dependency

misc.lisp (file)

Parent

cl-gd (system)

Location

animated-gif.lisp

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 cl-gd.system

Source

cl-gd.asd

Use List
Exported Definitions

*cl-gd-directory* (special variable)


Previous: , Up: Packages   [Contents][Index]

4.2 cl-gd

Source

packages.lisp (file)

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Constants

Constant: +max-colors+

Maximum number of colors for palette-based images.

Package

cl-gd

Source

specials.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Special variables

Special Variable: *cl-gd-directory*
Package

cl-gd.system

Source

cl-gd.asd

Special Variable: *default-color*

The default color. This special variable is usually bound by WITH-COLOR.

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *default-font*

The default font. This special variable is usually bound by WITH-FONT.

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *default-image*

The default image. This special variable is usually bound by WITH-IMAGE or WITH-IMAGE-FROM-FILE.

Package

cl-gd

Source

specials.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Macros

Macro: do-pixels (&optional IMAGE) &body BODY
Package

cl-gd

Source

misc.lisp (file)

Macro: do-rows (Y-VAR &optional IMAGE) &body BODY
Package

cl-gd

Source

misc.lisp (file)

Macro: with-clipping-rectangle (RECTANGLE &key IMAGE) &body BODY

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.

Package

cl-gd

Source

drawing.lisp (file)

Macro: with-clipping-rectangle* (X1 Y1 X2 Y2 &key IMAGE) &body BODY

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.

Package

cl-gd

Source

drawing.lisp (file)

Macro: with-default-color (COLOR) &body BODY

Executes BODY with *DEFAULT-COLOR* bound to COLOR so that you don’t have to provide the COLOR keyword/optional argument to drawing functions.

Package

cl-gd

Source

colors.lisp (file)

Macro: with-default-font (FONT) &body BODY

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.

Package

cl-gd

Source

strings.lisp (file)

Macro: with-default-image (IMAGE) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image (NAME WIDTH HEIGHT &optional TRUE-COLOR) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image* (WIDTH HEIGHT &optional TRUE-COLOR) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image-from-file (NAME FILE-NAME &optional TYPE) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image-from-file* (FILE-NAME &optional TYPE) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image-from-gd2-part (NAME FILE-NAME SRC-X SRC-Y WIDTH HEIGHT) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-image-from-gd2-part* (FILE-NAME SRC-X SRC-Y WIDTH HEIGHT) &body BODY

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.

Package

cl-gd

Source

images.lisp (file)

Macro: with-thickness (THICKNESS &key IMAGE) &body BODY

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.

Package

cl-gd

Source

colors.lisp (file)

Macro: with-transformation (&key X1 X2 WIDTH Y1 Y2 HEIGHT REVERSE-X REVERSE-Y RADIANS IMAGE) &body BODY

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.

Package

cl-gd

Source

transform.lisp (file)

Macro: without-transformations &body BODY

Executes BODY without any transformations applied.

Package

cl-gd

Source

transform.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Functions

Function: allocate-color RED GREEN BLUE &key ALPHA ERRORP IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Function: alpha-blending-p &optional IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Writer

(setf alpha-blending-p) (function)

Function: (setf alpha-blending-p) BLENDING &optional IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Reader

alpha-blending-p (function)

Function: clipping-rectangle &optional IMAGE

Returns the clipping rectangle of IMAGE as a list of four elements.

Package

cl-gd

Source

drawing.lisp (file)

Writer

(setf clipping-rectangle) (function)

Function: (setf clipping-rectangle) RECTANGLE &optional IMAGE

Sets the clipping rectangle of IMAGE where rectangle should be a list (X1 Y1 X2 Y2).

Package

cl-gd

Source

drawing.lisp (file)

Reader

clipping-rectangle (function)

Function: clipping-rectangle* &optional IMAGE

Returns the clipping rectangle of IMAGE as four values.

Package

cl-gd

Source

drawing.lisp (file)

Function: color-component COMPONENT COLOR &key IMAGE

Returns the specified color component of COLOR. COMPONENT can be one of :RED, :GREEN, :BLUE, and :ALPHA.

Package

cl-gd

Source

colors.lisp (file)

Function: color-components COLOR &key IMAGE

Returns a list of the color components of COLOR. The components are in the order red, green, blue, alpha.

Package

cl-gd

Source

colors.lisp (file)

Function: copy-image SOURCE DESTINATION SOURCE-X SOURCE-Y DEST-X DEST-Y WIDTH HEIGHT &key RESAMPLE ROTATE ANGLE RESIZE DEST-WIDTH DEST-HEIGHT MERGE MERGE-GRAY

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.

Package

cl-gd

Source

misc.lisp (file)

Function: copy-palette SOURCE DESTINATION

Copies palette of image SOURCE to image DESTINATION attempting to match the colors in the target image to the colors in the source palette.

Package

cl-gd

Source

misc.lisp (file)

Function: create-image WIDTH HEIGHT &optional TRUE-COLOR

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.

Package

cl-gd

Source

images.lisp (file)

Function: create-image-from-file FILE-NAME &optional TYPE

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.

Package

cl-gd

Source

images.lisp (file)

Function: create-image-from-gd2-part FILE-NAME SRC-X SRC-Y WIDTH HEIGHT

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.

Package

cl-gd

Source

images.lisp (file)

Function: deallocate-color COLOR &optional IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Function: destroy-image IMAGE

Destroys (deallocates) IMAGE which has been created by CREATE-IMAGE, CREATE-IMAGE-FROM-FILE, or CREATE-IMAGE-FROM-GD2-PART.

Package

cl-gd

Source

images.lisp (file)

Function: differentp IMAGE1 IMAGE2

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.

Package

cl-gd

Source

misc.lisp (file)

Function: draw-arc CENTER-X CENTER-Y WIDTH HEIGHT START END &key STRAIGHT-LINE CENTER-CONNECT FILLED COLOR IMAGE

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.

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-character X Y CHAR &key UP FONT COLOR IMAGE

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.

Package

cl-gd

Source

strings.lisp (file)

Function: draw-filled-circle CENTER-X CENTER-Y RADIUS &key COLOR IMAGE

Draws a filled circle centered at (CENTER-X, CENTER-Y) with radius RADIUS.

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-filled-ellipse CENTER-X CENTER-Y WIDTH HEIGHT &key COLOR IMAGE

Draws a filled ellipse centered at (CENTER-X, CENTER-Y) with width WIDTH and height HEIGHT.

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-freetype-string X Y STRING &key ANTI-ALIASED POINT-SIZE ANGLE CONVERT-CHARS LINE-SPACING FONT-NAME DO-NOT-DRAW COLOR IMAGE

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.

Package

cl-gd

Source

strings.lisp (file)

Function: draw-line X1 Y1 X2 Y2 &key COLOR IMAGE

Draws a line with color COLOR from point (X1,Y1) to point (X2,Y2).

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-rectangle RECTANGLE &key FILLED COLOR IMAGE

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.

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-rectangle* X1 Y1 X2 Y2 &key FILLED COLOR IMAGE

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.

Package

cl-gd

Source

drawing.lisp (file)

Function: draw-string X Y STRING &key UP FONT COLOR IMAGE

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.

Package

cl-gd

Source

strings.lisp (file)

Function: fill-image X Y &key BORDER COLOR IMAGE

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.

Package

cl-gd

Source

drawing.lisp (file)

Function: find-color RED GREEN BLUE &key ALPHA EXACT HWB RESOLVE IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Function: find-color-from-image COLOR SOURCE-IMAGE &key ALPHA EXACT HWB RESOLVE IMAGE

Returns the color in IMAGE corresponding to COLOR in SOURCE-IMAGE. The keyword parameters are passed to FIND-COLOR.

Package

cl-gd

Source

colors.lisp (file)

Function: get-pixel X Y &key IMAGE

Gets the color associated with point (X,Y).

Package

cl-gd

Source

drawing.lisp (file)

Function: image-height &optional IMAGE
Package

cl-gd

Source

images.lisp (file)

Function: image-size &optional IMAGE
Package

cl-gd

Source

images.lisp (file)

Function: image-width &optional IMAGE

Returns width of IMAGE.

Package

cl-gd

Source

images.lisp (file)

Function: interlacedp &optional IMAGE

Returns whether IMAGE will be stored in an interlaced fashion.

Package

cl-gd

Source

misc.lisp (file)

Writer

(setf interlacedp) (function)

Function: (setf interlacedp) INTERLACED &optional IMAGE

Sets whether IMAGE will be stored in an interlaced fashion.

Package

cl-gd

Source

misc.lisp (file)

Reader

interlacedp (function)

Function: make-anti-aliased COLOR &optional DO-NOT-BLEND
Package

cl-gd

Source

specials.lisp (file)

Function: make-brush IMAGE
Package

cl-gd

Source

specials.lisp (file)

Function: make-tile IMAGE
Package

cl-gd

Source

specials.lisp (file)

Function: number-of-colors &key IMAGE

Returns the number of color allocated in IMAGE. Returns NIL if IMAGE is a true color image.

Package

cl-gd

Source

colors.lisp (file)

Function: save-alpha-p &optional IMAGE

Returns whether PNG images will be saved with full alpha channel information.

Package

cl-gd

Source

colors.lisp (file)

Writer

(setf save-alpha-p) (function)

Function: (setf save-alpha-p) SAVE &optional IMAGE

Determines whether PNG images will be saved with full alpha channel information.

Package

cl-gd

Source

colors.lisp (file)

Reader

save-alpha-p (function)

Function: set-clipping-rectangle* X1 Y1 X2 Y2 &optional IMAGE

Sets the clipping rectangle of IMAGE to be the rectangle with upper left corner (X1, Y1) and lower right corner (X2, Y2).

Package

cl-gd

Source

drawing.lisp (file)

Function: set-pixel X Y &key COLOR IMAGE

Draws a pixel with color COLOR at point (X,Y).

Package

cl-gd

Source

drawing.lisp (file)

Function: thickness &optional IMAGE

Gets the width of lines drawn by the drawing functions. Note that this is measured in pixels and is NOT affected by WITH-TRANSFORMATION.

Package

cl-gd

Source

colors.lisp (file)

Writer

(setf thickness) (function)

Function: (setf thickness) THICKNESS &optional IMAGE

Sets the width of lines drawn by the drawing functions. Note that THICKNESS is measured in pixels and is NOT affected by WITH-TRANSFORMATION.

Package

cl-gd

Source

colors.lisp (file)

Reader

thickness (function)

Function: transparent-color &optional IMAGE

Returns the transparent color of IMAGE (or NIL if there is none).

Package

cl-gd

Source

colors.lisp (file)

Writer

(setf transparent-color) (function)

Function: (setf transparent-color) COLOR &optional IMAGE

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.

Package

cl-gd

Source

colors.lisp (file)

Reader

transparent-color (function)

Function: true-color-p &optional IMAGE

Returns true iff IMAGE is a true color image.

Package

cl-gd

Source

colors.lisp (file)

Function: true-color-to-palette &key DITHER COLORS-WANTED 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.

Package

cl-gd

Source

misc.lisp (file)

Function: write-gd-to-stream STREAM &key 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.

Package

cl-gd

Source

images.lisp (file)

Function: write-gd2-to-stream STREAM &key IMAGE

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-gif-to-stream STREAM &key IMAGE

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-image-to-file FILE-NAME &rest REST &key TYPE IF-EXISTS &allow-other-keys

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-image-to-stream STREAM TYPE &rest REST &key &allow-other-keys

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-jpeg-to-stream STREAM &key QUALITY IMAGE

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-png-to-stream STREAM &key COMPRESSION-LEVEL IMAGE

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.

Package

cl-gd

Source

images.lisp (file)

Function: write-wbmp-to-stream STREAM &key FOREGROUND IMAGE

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

Package

cl-gd

Source

images.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.5 Generic functions

Generic Function: draw-polygon VERTICES &key FILLED START END COLOR IMAGE

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.

Package

cl-gd

Source

drawing.lisp (file)

Methods
Method: draw-polygon (VERTICES list) &key FILLED START END COLOR IMAGE
Method: draw-polygon (VERTICES vector) &key FILLED START END COLOR IMAGE
Generic Function: set-pixels POINTS &key COLOR IMAGE

Draws a list (X1 Y1 X2 Y2 ...) or vector #(X1 Y1 X2 Y2 ...) of pixels.

Package

cl-gd

Source

drawing.lisp (file)

Methods
Method: set-pixels (POINTS vector) &key COLOR IMAGE
Method: set-pixels (POINTS list) &key COLOR IMAGE

Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Constants

Constant: +anti-aliased+

Special ’color’ for anti-aliased lines.

Package

cl-gd

Source

specials.lisp (file)

Constant: +brushed+

Special ’color’ for lines drawn with brush.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-chord+

Used internally by GD-FILLED-ARC

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-background+

Background color is different.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-color+

Image colors differ.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-image+

Images will appear different when displayed.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-interlace+

Interlace settings are different.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-num-colors+

Number of colors in palette differ.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-size-x+

Image widths differ.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-size-y+

Image heights differ.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-transparent+

Transparent color is different.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-cmp-true-color+

One image is a true-color image, the other one is palette-based.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-disposal-none+
Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-disposal-restore-background+
Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-disposal-restore-previous+
Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-disposal-unknown+
Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-edged+

Used internally by GD-FILLED-ARC

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-ftex-linespace+

Indicate line-spacing for FreeType library.

Package

cl-gd

Source

specials.lisp (file)

Constant: +gd-no-fill+

Used internally by GD-FILLED-ARC

Package

cl-gd

Source

specials.lisp (file)

Constant: +most-positive-unsigned-byte-32+

Name says it all...

Package

cl-gd

Source

specials.lisp (file)

Constant: +radians-to-degree-factor+

Factor to convert from radians to degrees.

Package

cl-gd

Source

specials.lisp (file)

Constant: +styled+

Special ’color’ for styled lines.

Package

cl-gd

Source

specials.lisp (file)

Constant: +styled-brushed+

Special ’color’ for lines drawn with styled brush.

Package

cl-gd

Source

specials.lisp (file)

Constant: +tiled+

Special fill ’color’ used for tiles.

Package

cl-gd

Source

specials.lisp (file)

Constant: +transparent+

Special ’color’ used in GD function ’gdImageSetStyle’ for transparent color.

Package

cl-gd

Source

specials.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Special variables

Special Variable: *current-animation*
Package

cl-gd

Source

animated-gif.lisp (file)

Special Variable: *gd-supporting-libraries*

The libraries which are needed by cl-gd-glues.so (and GD itself). Only needed for Python-based Lisps like CMUCL, SBCL, or SCL.

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *hyperdoc-base-uri*
Package

cl-gd

Source

specials.lisp (file)

Special Variable: *null-image*

A ’null’ image which might be useful for DRAW-FREETYPE-STRING.

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *shared-library-directories*

A list of directories where UFFI tries to find cl-gd-glue.so

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *shared-library-drive-letters*

The list of drive letters (used by Wintendo) used when looking for cl-gd-glue.dll.

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *shared-library-types*

The list of types a shared library can have. Used when looking for cl-gd-glue.so

Package

cl-gd

Source

specials.lisp (file)

Special Variable: *transformers*

Stack of currently active transformer objects.

Package

cl-gd

Source

specials.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Macros

Macro: make-stream-fn NAME SIGNATURE GD-CALL TYPE-CHECKS DOCSTRING

Internal macro used to generate WRITE-JPEG-TO-STREAM and friends.

Package

cl-gd

Source

images.lisp (file)

Macro: with-animated-gif (FILENAME &key BACKGROUND-IMAGE GLOBAL-COLOR-MAP-P LOOP-COUNT ANIMATION DEFAULT-DELAY) &body BODY
Package

cl-gd

Source

animated-gif.lisp (file)

Macro: with-color-argument &body BODY

Internal macro used to give correct color arguments to enclosed foreign functions. Assumes fixed names COLOR and IMAGE.

Package

cl-gd

Source

colors-aux.lisp (file)

Macro: with-rebinding BINDINGS &body BODY

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).

Package

cl-gd

Source

util.lisp (file)

Macro: with-safe-alloc (VAR ALLOC FREE) &rest BODY
Package

cl-gd

Source

util.lisp (file)

Macro: with-transformed-alternative (&rest TRANSFORMATIONS) &body BODY

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.

Package

cl-gd

Source

transform.lisp (file)

Macro: with-unique-names (&rest BINDINGS) &body BODY

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).

Package

cl-gd

Source

util.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Functions

Function: %make-anti-aliased COLOR DO-NOT-BLEND
Package

cl-gd

Source

specials.lisp (file)

Function: %make-brush IMG
Package

cl-gd

Source

specials.lisp (file)

Function: %make-tile IMG
Package

cl-gd

Source

specials.lisp (file)

Function: add-image-to-animation IMAGE &key LOCAL-COLOR-MAP-P LEFT-OFFSET TOP-OFFSET DELAY DISPOSAL LAST-IMAGE ANIMATION
Package

cl-gd

Source

animated-gif.lisp (file)

Function: anti-aliased-color-p OBJECT
Package

cl-gd

Source

specials.lisp (file)

Function: brush-img INSTANCE
Function: (setf brush-img) VALUE INSTANCE
Package

cl-gd

Source

specials.lisp (file)

Function: brush-p OBJECT
Package

cl-gd

Source

specials.lisp (file)

Function: color INSTANCE
Function: (setf color) VALUE INSTANCE
Package

cl-gd

Source

specials.lisp (file)

Function: convert-to-char-references STRING

Returns a string where all characters of STRING with CHAR-CODE greater than 127 are converted to XML character entities.

Package

cl-gd

Source

util.lisp (file)

Function: current-brush &optional IMAGE

Returns the GD image which is the current brush of IMAGE (or NIL if there is no current brush).

Package

cl-gd

Source

colors-aux.lisp (file)

Writer

(setf current-brush) (function)

Function: (setf current-brush) BRUSH &optional IMAGE

Sets BRUSH (which must be a GD image) to be the current brush for IMAGE.

Package

cl-gd

Source

colors-aux.lisp (file)

Reader

current-brush (function)

Function: current-style &optional IMAGE

Returns the current style of IMAGE as a list.

Package

cl-gd

Source

colors-aux.lisp (file)

Writer

(setf current-style) (generic function)

Function: current-style* &key IMAGE

Returns the current style of IMAGE as an array.

Package

cl-gd

Source

colors-aux.lisp (file)

Function: current-tile &optional IMAGE

Returns the GD image which is the current tile of IMAGE (or NIL if there is no current tile).

Package

cl-gd

Source

colors-aux.lisp (file)

Writer

(setf current-tile) (function)

Function: (setf current-tile) TILE &optional IMAGE

Sets TILE (which must be a GD image) to be the current tile for IMAGE.

Package

cl-gd

Source

colors-aux.lisp (file)

Reader

current-tile (function)

Function: do-not-blend INSTANCE
Function: (setf do-not-blend) VALUE INSTANCE
Package

cl-gd

Source

specials.lisp (file)

Function: gd-free PTR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-alpha-blending IM BLENDING
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-arc IM CX CY W H S E COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-bounds-safe IM X Y
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-char IM F X Y C COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-char-up IM F X Y C COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-allocate IM R G B
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-allocate-alpha IM R G B A
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-closest IM R G B
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-closest-alpha IM R G B A
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-closest-hwb IM R G B
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-deallocate IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-exact IM R G B
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-resolve IM R G B
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-resolve-alpha IM R G B A
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-color-transparent IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-compare IM1 IM2
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy DST SRC DEST-X DEST-Y SRC-X SRC-Y W H
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy-merge DST SRC DEST-X DEST-Y SRC-X SRC-Y W H PERCENT
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy-merge-gray DST SRC DEST-X DEST-Y SRC-X SRC-Y W H PERCENT
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy-resampled DST SRC DST-X DST-Y SRC-X SRC-Y DEST-W DEST-H SRC-W SRC-H
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy-resized DST SRC DST-X DST-Y SRC-X SRC-Y DEST-W DEST-H SRC-W SRC-H
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-copy-rotated DST SRC DST-X DST-Y SRC-X SRC-Y SRC-W SRC-H ANGLE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create SX SY
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-gd-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-gd2-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-gd2-part-file FILENAME ERR SRC-X SRC-Y W H
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-gif-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-jpeg-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-png-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-xbm-file FILENAME ERR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-from-xpm FILENAME
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-create-true-color SX SY
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-destroy IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-fill IM X Y COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-fill-to-border IM X Y BORDER COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-filled-arc IM CX CY W H S E COLOR STYLE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-filled-ellipse IM CX CY W H COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-filled-polygon IM POINTS POINTS-TOTAL COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-filled-rectangle IM X1 Y1 X2 Y2 COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gd-ptr IM SIZE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gd2-ptr IM SIZE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-alpha IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-blue IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-clip IM X1P Y1P X2P Y2P
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-colors-total IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-green IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-interlaced IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-pixel IM X Y
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-red IM COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-sx IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-sy IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-get-transparent IM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gif-anim-add IM OUT LOCAL-CM LEFT-OFS TOP-OFS DELAY DISPOSAL PREVIM
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gif-anim-begin-wrap IM FILENAME GLOBAL-CM LOOPS
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gif-anim-end-wrap OUT
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-gif-ptr IM SIZE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-interlace IM INTERLACE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-jpeg-ptr IM SIZE QUALITY
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-line IM X1 Y1 X2 Y2 COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-palette-copy DST SRC
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-png-ptr IM SIZE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-png-ptr-ex IM SIZE LEVEL
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-polygon IM POINTS POINTS-TOTAL COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-rectangle IM X1 Y1 X2 Y2 COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-save-alpha IM SAVE-FLAG
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-anti-aliased IM C
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-anti-aliased-do-not-blend IM C DONT-BLEND
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-brush IM BRUSH
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-clip IM X1 Y1 X2 Y2
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-pixel IM X Y COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-style IM STYLE STYLE-LENGTH
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-thickness IM THICKNESS
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-set-tile IM TILE
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-string IM F X Y S COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-string-ft IM BRECT FG FONTNAME PTSIZE ANGLE X Y STRING
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-string-ft-ex IM BRECT FG FONTNAME PTSIZE ANGLE X Y STRING STREX
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-string-up IM F X Y S COLOR
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-true-color-to-palette IM DITHER COLORS-WANTED
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: gd-image-wbmp-ptr IM SIZE FG
Package

cl-gd

Source

gd-uffi.lisp (file)

Function: hyperdoc-lookup SYMBOL TYPE
Package

cl-gd

Source

specials.lisp (file)

Function: image-p OBJECT
Package

cl-gd

Source

specials.lisp (file)

Function: img INSTANCE
Function: (setf img) VALUE INSTANCE
Package

cl-gd

Source

specials.lisp (file)

Function: load-gd-glue ()

Load the little glue library we have to create for the image input functions.

Package

cl-gd

Source

init.lisp (file)

Function: make-image IMG
Package

cl-gd

Source

specials.lisp (file)

Function: resolve-c-color COLOR IMAGE

Accepts a CL-GD ’color’ COLOR and returns the corresponding argument for GD, modifying internal slots of IMAGE if needed.

Package

cl-gd

Source

colors-aux.lisp (file)

Function: round-to-signed-byte-32 X

Like ROUND but make sure result isn’t longer than 32 bits.

Package

cl-gd

Source

transform.lisp (file)

Function: sans PLIST &rest KEYS

Returns PLIST with keyword arguments from KEYS removed.

Package

cl-gd

Source

util.lisp (file)

Function: set-anti-aliased COLOR DO-NOT-BLEND &optional IMAGE

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.

Package

cl-gd

Source

colors-aux.lisp (file)

Function: tile-img INSTANCE
Function: (setf tile-img) VALUE INSTANCE
Package

cl-gd

Source

specials.lisp (file)

Function: tile-p OBJECT
Package

cl-gd

Source

specials.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Generic functions

Generic Function: angle-transformer OBJECT
Package

cl-gd

Methods
Method: angle-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: (setf current-style) STYLE &optional IMAGE

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).

Package

cl-gd

Source

colors-aux.lisp (file)

Reader

current-style (function)

Methods
Method: (setf current-style) (STYLE vector) &optional IMAGE
Method: (setf current-style) (STYLE list) &optional IMAGE
Generic Function: h-inv-transformer OBJECT
Package

cl-gd

Methods
Method: h-inv-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: h-transformer OBJECT
Package

cl-gd

Methods
Method: h-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: image OBJECT
Package

cl-gd

Methods
Method: image (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: w-inv-transformer OBJECT
Package

cl-gd

Methods
Method: w-inv-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: w-transformer OBJECT
Package

cl-gd

Methods
Method: w-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: x-inv-transformer OBJECT
Package

cl-gd

Methods
Method: x-inv-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: x-transformer OBJECT
Package

cl-gd

Methods
Method: x-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: y-inv-transformer OBJECT
Package

cl-gd

Methods
Method: y-inv-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)

Generic Function: y-transformer OBJECT
Package

cl-gd

Methods
Method: y-transformer (TRANSFORMER transformer)

automatically generated reader method

Source

transform.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.6 Structures

Structure: anti-aliased-color ()
Package

cl-gd

Source

specials.lisp (file)

Direct superclasses

structure-object (structure)

Direct slots
Slot: color
Readers

color (function)

Writers

(setf color) (function)

Slot: do-not-blend
Readers

do-not-blend (function)

Writers

(setf do-not-blend) (function)

Structure: brush ()
Package

cl-gd

Source

specials.lisp (file)

Direct superclasses

image (structure)

Structure: image ()
Package

cl-gd

Source

specials.lisp (file)

Direct superclasses

structure-object (structure)

Direct subclasses
Direct methods

print-object (method)

Direct slots
Slot: img
Readers

img (function)

Writers

(setf img) (function)

Structure: tile ()
Package

cl-gd

Source

specials.lisp (file)

Direct superclasses

image (structure)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.7 Classes

Class: transformer ()

Class used internally for WITH-TRANSFORMATION macro.

Package

cl-gd

Source

transform.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: image
Initargs

:image

Readers

image (generic function)

Slot: w-transformer
Type

function

Initargs

:w-transformer

Readers

w-transformer (generic function)

Slot: h-transformer
Type

function

Initargs

:h-transformer

Readers

h-transformer (generic function)

Slot: x-transformer
Type

function

Initargs

:x-transformer

Readers

x-transformer (generic function)

Slot: y-transformer
Type

function

Initargs

:y-transformer

Readers

y-transformer (generic function)

Slot: w-inv-transformer
Type

function

Initargs

:w-inv-transformer

Readers

w-inv-transformer (generic function)

Slot: h-inv-transformer
Type

function

Initargs

:h-inv-transformer

Readers

h-inv-transformer (generic function)

Slot: x-inv-transformer
Type

function

Initargs

:x-inv-transformer

Readers

x-inv-transformer (generic function)

Slot: y-inv-transformer
Type

function

Initargs

:y-inv-transformer

Readers

y-inv-transformer (generic function)

Slot: angle-transformer
Type

function

Initargs

:angle-transformer

Readers

angle-transformer (generic function)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.8 Types

Type: pixels-array ()
Package

cl-gd

Source

gd-uffi.lisp (file)

Type: pixels-row ()
Package

cl-gd

Source

gd-uffi.lisp (file)

Type: t-pixels-array ()
Package

cl-gd

Source

gd-uffi.lisp (file)

Type: t-pixels-row ()
Package

cl-gd

Source

gd-uffi.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-gd.asd: The cl-gd<dot>asd file
cl-gd/animated-gif.lisp: The cl-gd/animated-gif<dot>lisp file
cl-gd/colors-aux.lisp: The cl-gd/colors-aux<dot>lisp file
cl-gd/colors.lisp: The cl-gd/colors<dot>lisp file
cl-gd/drawing.lisp: The cl-gd/drawing<dot>lisp file
cl-gd/gd-uffi.lisp: The cl-gd/gd-uffi<dot>lisp file
cl-gd/images.lisp: The cl-gd/images<dot>lisp file
cl-gd/init.lisp: The cl-gd/init<dot>lisp file
cl-gd/misc.lisp: The cl-gd/misc<dot>lisp file
cl-gd/packages.lisp: The cl-gd/packages<dot>lisp file
cl-gd/specials.lisp: The cl-gd/specials<dot>lisp file
cl-gd/strings.lisp: The cl-gd/strings<dot>lisp file
cl-gd/transform.lisp: The cl-gd/transform<dot>lisp file
cl-gd/util.lisp: The cl-gd/util<dot>lisp file

F
File, Lisp, cl-gd.asd: The cl-gd<dot>asd file
File, Lisp, cl-gd/animated-gif.lisp: The cl-gd/animated-gif<dot>lisp file
File, Lisp, cl-gd/colors-aux.lisp: The cl-gd/colors-aux<dot>lisp file
File, Lisp, cl-gd/colors.lisp: The cl-gd/colors<dot>lisp file
File, Lisp, cl-gd/drawing.lisp: The cl-gd/drawing<dot>lisp file
File, Lisp, cl-gd/gd-uffi.lisp: The cl-gd/gd-uffi<dot>lisp file
File, Lisp, cl-gd/images.lisp: The cl-gd/images<dot>lisp file
File, Lisp, cl-gd/init.lisp: The cl-gd/init<dot>lisp file
File, Lisp, cl-gd/misc.lisp: The cl-gd/misc<dot>lisp file
File, Lisp, cl-gd/packages.lisp: The cl-gd/packages<dot>lisp file
File, Lisp, cl-gd/specials.lisp: The cl-gd/specials<dot>lisp file
File, Lisp, cl-gd/strings.lisp: The cl-gd/strings<dot>lisp file
File, Lisp, cl-gd/transform.lisp: The cl-gd/transform<dot>lisp file
File, Lisp, cl-gd/util.lisp: The cl-gd/util<dot>lisp file

L
Lisp File, cl-gd.asd: The cl-gd<dot>asd file
Lisp File, cl-gd/animated-gif.lisp: The cl-gd/animated-gif<dot>lisp file
Lisp File, cl-gd/colors-aux.lisp: The cl-gd/colors-aux<dot>lisp file
Lisp File, cl-gd/colors.lisp: The cl-gd/colors<dot>lisp file
Lisp File, cl-gd/drawing.lisp: The cl-gd/drawing<dot>lisp file
Lisp File, cl-gd/gd-uffi.lisp: The cl-gd/gd-uffi<dot>lisp file
Lisp File, cl-gd/images.lisp: The cl-gd/images<dot>lisp file
Lisp File, cl-gd/init.lisp: The cl-gd/init<dot>lisp file
Lisp File, cl-gd/misc.lisp: The cl-gd/misc<dot>lisp file
Lisp File, cl-gd/packages.lisp: The cl-gd/packages<dot>lisp file
Lisp File, cl-gd/specials.lisp: The cl-gd/specials<dot>lisp file
Lisp File, cl-gd/strings.lisp: The cl-gd/strings<dot>lisp file
Lisp File, cl-gd/transform.lisp: The cl-gd/transform<dot>lisp file
Lisp File, cl-gd/util.lisp: The cl-gd/util<dot>lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
A   B   C   D   F   G   H   I   L   M   N   R   S   T   W   X   Y  
Index Entry  Section

%
%make-anti-aliased: Internal functions
%make-brush: Internal functions
%make-tile: Internal functions

(
(setf alpha-blending-p): Exported functions
(setf brush-img): Internal functions
(setf clipping-rectangle): Exported functions
(setf color): Internal functions
(setf current-brush): Internal functions
(setf current-style): Internal generic functions
(setf current-style): Internal generic functions
(setf current-style): Internal generic functions
(setf current-tile): Internal functions
(setf do-not-blend): Internal functions
(setf img): Internal functions
(setf interlacedp): Exported functions
(setf save-alpha-p): Exported functions
(setf thickness): Exported functions
(setf tile-img): Internal functions
(setf transparent-color): Exported functions

A
add-image-to-animation: Internal functions
allocate-color: Exported functions
alpha-blending-p: Exported functions
angle-transformer: Internal generic functions
angle-transformer: Internal generic functions
anti-aliased-color-p: Internal functions

B
brush-img: Internal functions
brush-p: Internal functions

C
clipping-rectangle: Exported functions
clipping-rectangle*: Exported functions
color: Internal functions
color-component: Exported functions
color-components: Exported functions
convert-to-char-references: Internal functions
copy-image: Exported functions
copy-palette: Exported functions
create-image: Exported functions
create-image-from-file: Exported functions
create-image-from-gd2-part: Exported functions
current-brush: Internal functions
current-style: Internal functions
current-style*: Internal functions
current-tile: Internal functions

D
deallocate-color: Exported functions
destroy-image: Exported functions
differentp: Exported functions
do-not-blend: Internal functions
do-pixels: Exported macros
do-rows: Exported macros
draw-arc: Exported functions
draw-character: Exported functions
draw-filled-circle: Exported functions
draw-filled-ellipse: Exported functions
draw-freetype-string: Exported functions
draw-line: Exported functions
draw-polygon: Exported generic functions
draw-polygon: Exported generic functions
draw-polygon: Exported generic functions
draw-rectangle: Exported functions
draw-rectangle*: Exported functions
draw-string: Exported functions

F
fill-image: Exported functions
find-color: Exported functions
find-color-from-image: Exported functions
Function, %make-anti-aliased: Internal functions
Function, %make-brush: Internal functions
Function, %make-tile: Internal functions
Function, (setf alpha-blending-p): Exported functions
Function, (setf brush-img): Internal functions
Function, (setf clipping-rectangle): Exported functions
Function, (setf color): Internal functions
Function, (setf current-brush): Internal functions
Function, (setf current-tile): Internal functions
Function, (setf do-not-blend): Internal functions
Function, (setf img): Internal functions
Function, (setf interlacedp): Exported functions
Function, (setf save-alpha-p): Exported functions
Function, (setf thickness): Exported functions
Function, (setf tile-img): Internal functions
Function, (setf transparent-color): Exported functions
Function, add-image-to-animation: Internal functions
Function, allocate-color: Exported functions
Function, alpha-blending-p: Exported functions
Function, anti-aliased-color-p: Internal functions
Function, brush-img: Internal functions
Function, brush-p: Internal functions
Function, clipping-rectangle: Exported functions
Function, clipping-rectangle*: Exported functions
Function, color: Internal functions
Function, color-component: Exported functions
Function, color-components: Exported functions
Function, convert-to-char-references: Internal functions
Function, copy-image: Exported functions
Function, copy-palette: Exported functions
Function, create-image: Exported functions
Function, create-image-from-file: Exported functions
Function, create-image-from-gd2-part: Exported functions
Function, current-brush: Internal functions
Function, current-style: Internal functions
Function, current-style*: Internal functions
Function, current-tile: Internal functions
Function, deallocate-color: Exported functions
Function, destroy-image: Exported functions
Function, differentp: Exported functions
Function, do-not-blend: Internal functions
Function, draw-arc: Exported functions
Function, draw-character: Exported functions
Function, draw-filled-circle: Exported functions
Function, draw-filled-ellipse: Exported functions
Function, draw-freetype-string: Exported functions
Function, draw-line: Exported functions
Function, draw-rectangle: Exported functions
Function, draw-rectangle*: Exported functions
Function, draw-string: Exported functions
Function, fill-image: Exported functions
Function, find-color: Exported functions
Function, find-color-from-image: Exported functions
Function, gd-free: Internal functions
Function, gd-image-alpha-blending: Internal functions
Function, gd-image-arc: Internal functions
Function, gd-image-bounds-safe: Internal functions
Function, gd-image-char: Internal functions
Function, gd-image-char-up: Internal functions
Function, gd-image-color-allocate: Internal functions
Function, gd-image-color-allocate-alpha: Internal functions
Function, gd-image-color-closest: Internal functions
Function, gd-image-color-closest-alpha: Internal functions
Function, gd-image-color-closest-hwb: Internal functions
Function, gd-image-color-deallocate: Internal functions
Function, gd-image-color-exact: Internal functions
Function, gd-image-color-resolve: Internal functions
Function, gd-image-color-resolve-alpha: Internal functions
Function, gd-image-color-transparent: Internal functions
Function, gd-image-compare: Internal functions
Function, gd-image-copy: Internal functions
Function, gd-image-copy-merge: Internal functions
Function, gd-image-copy-merge-gray: Internal functions
Function, gd-image-copy-resampled: Internal functions
Function, gd-image-copy-resized: Internal functions
Function, gd-image-copy-rotated: Internal functions
Function, gd-image-create: Internal functions
Function, gd-image-create-from-gd-file: Internal functions
Function, gd-image-create-from-gd2-file: Internal functions
Function, gd-image-create-from-gd2-part-file: Internal functions
Function, gd-image-create-from-gif-file: Internal functions
Function, gd-image-create-from-jpeg-file: Internal functions
Function, gd-image-create-from-png-file: Internal functions
Function, gd-image-create-from-xbm-file: Internal functions
Function, gd-image-create-from-xpm: Internal functions
Function, gd-image-create-true-color: Internal functions
Function, gd-image-destroy: Internal functions
Function, gd-image-fill: Internal functions
Function, gd-image-fill-to-border: Internal functions
Function, gd-image-filled-arc: Internal functions
Function, gd-image-filled-ellipse: Internal functions
Function, gd-image-filled-polygon: Internal functions
Function, gd-image-filled-rectangle: Internal functions
Function, gd-image-gd-ptr: Internal functions
Function, gd-image-gd2-ptr: Internal functions
Function, gd-image-get-alpha: Internal functions
Function, gd-image-get-blue: Internal functions
Function, gd-image-get-clip: Internal functions
Function, gd-image-get-colors-total: Internal functions
Function, gd-image-get-green: Internal functions
Function, gd-image-get-interlaced: Internal functions
Function, gd-image-get-pixel: Internal functions
Function, gd-image-get-red: Internal functions
Function, gd-image-get-sx: Internal functions
Function, gd-image-get-sy: Internal functions
Function, gd-image-get-transparent: Internal functions
Function, gd-image-gif-anim-add: Internal functions
Function, gd-image-gif-anim-begin-wrap: Internal functions
Function, gd-image-gif-anim-end-wrap: Internal functions
Function, gd-image-gif-ptr: Internal functions
Function, gd-image-interlace: Internal functions
Function, gd-image-jpeg-ptr: Internal functions
Function, gd-image-line: Internal functions
Function, gd-image-palette-copy: Internal functions
Function, gd-image-png-ptr: Internal functions
Function, gd-image-png-ptr-ex: Internal functions
Function, gd-image-polygon: Internal functions
Function, gd-image-rectangle: Internal functions
Function, gd-image-save-alpha: Internal functions
Function, gd-image-set-anti-aliased: Internal functions
Function, gd-image-set-anti-aliased-do-not-blend: Internal functions
Function, gd-image-set-brush: Internal functions
Function, gd-image-set-clip: Internal functions
Function, gd-image-set-pixel: Internal functions
Function, gd-image-set-style: Internal functions
Function, gd-image-set-thickness: Internal functions
Function, gd-image-set-tile: Internal functions
Function, gd-image-string: Internal functions
Function, gd-image-string-ft: Internal functions
Function, gd-image-string-ft-ex: Internal functions
Function, gd-image-string-up: Internal functions
Function, gd-image-true-color-to-palette: Internal functions
Function, gd-image-wbmp-ptr: Internal functions
Function, get-pixel: Exported functions
Function, hyperdoc-lookup: Internal functions
Function, image-height: Exported functions
Function, image-p: Internal functions
Function, image-size: Exported functions
Function, image-width: Exported functions
Function, img: Internal functions
Function, interlacedp: Exported functions
Function, load-gd-glue: Internal functions
Function, make-anti-aliased: Exported functions
Function, make-brush: Exported functions
Function, make-image: Internal functions
Function, make-tile: Exported functions
Function, number-of-colors: Exported functions
Function, resolve-c-color: Internal functions
Function, round-to-signed-byte-32: Internal functions
Function, sans: Internal functions
Function, save-alpha-p: Exported functions
Function, set-anti-aliased: Internal functions
Function, set-clipping-rectangle*: Exported functions
Function, set-pixel: Exported functions
Function, thickness: Exported functions
Function, tile-img: Internal functions
Function, tile-p: Internal functions
Function, transparent-color: Exported functions
Function, true-color-p: Exported functions
Function, true-color-to-palette: Exported functions
Function, write-gd-to-stream: Exported functions
Function, write-gd2-to-stream: Exported functions
Function, write-gif-to-stream: Exported functions
Function, write-image-to-file: Exported functions
Function, write-image-to-stream: Exported functions
Function, write-jpeg-to-stream: Exported functions
Function, write-png-to-stream: Exported functions
Function, write-wbmp-to-stream: Exported functions

G
gd-free: Internal functions
gd-image-alpha-blending: Internal functions
gd-image-arc: Internal functions
gd-image-bounds-safe: Internal functions
gd-image-char: Internal functions
gd-image-char-up: Internal functions
gd-image-color-allocate: Internal functions
gd-image-color-allocate-alpha: Internal functions
gd-image-color-closest: Internal functions
gd-image-color-closest-alpha: Internal functions
gd-image-color-closest-hwb: Internal functions
gd-image-color-deallocate: Internal functions
gd-image-color-exact: Internal functions
gd-image-color-resolve: Internal functions
gd-image-color-resolve-alpha: Internal functions
gd-image-color-transparent: Internal functions
gd-image-compare: Internal functions
gd-image-copy: Internal functions
gd-image-copy-merge: Internal functions
gd-image-copy-merge-gray: Internal functions
gd-image-copy-resampled: Internal functions
gd-image-copy-resized: Internal functions
gd-image-copy-rotated: Internal functions
gd-image-create: Internal functions
gd-image-create-from-gd-file: Internal functions
gd-image-create-from-gd2-file: Internal functions
gd-image-create-from-gd2-part-file: Internal functions
gd-image-create-from-gif-file: Internal functions
gd-image-create-from-jpeg-file: Internal functions
gd-image-create-from-png-file: Internal functions
gd-image-create-from-xbm-file: Internal functions
gd-image-create-from-xpm: Internal functions
gd-image-create-true-color: Internal functions
gd-image-destroy: Internal functions
gd-image-fill: Internal functions
gd-image-fill-to-border: Internal functions
gd-image-filled-arc: Internal functions
gd-image-filled-ellipse: Internal functions
gd-image-filled-polygon: Internal functions
gd-image-filled-rectangle: Internal functions
gd-image-gd-ptr: Internal functions
gd-image-gd2-ptr: Internal functions
gd-image-get-alpha: Internal functions
gd-image-get-blue: Internal functions
gd-image-get-clip: Internal functions
gd-image-get-colors-total: Internal functions
gd-image-get-green: Internal functions
gd-image-get-interlaced: Internal functions
gd-image-get-pixel: Internal functions
gd-image-get-red: Internal functions
gd-image-get-sx: Internal functions
gd-image-get-sy: Internal functions
gd-image-get-transparent: Internal functions
gd-image-gif-anim-add: Internal functions
gd-image-gif-anim-begin-wrap: Internal functions
gd-image-gif-anim-end-wrap: Internal functions
gd-image-gif-ptr: Internal functions
gd-image-interlace: Internal functions
gd-image-jpeg-ptr: Internal functions
gd-image-line: Internal functions
gd-image-palette-copy: Internal functions
gd-image-png-ptr: Internal functions
gd-image-png-ptr-ex: Internal functions
gd-image-polygon: Internal functions
gd-image-rectangle: Internal functions
gd-image-save-alpha: Internal functions
gd-image-set-anti-aliased: Internal functions
gd-image-set-anti-aliased-do-not-blend: Internal functions
gd-image-set-brush: Internal functions
gd-image-set-clip: Internal functions
gd-image-set-pixel: Internal functions
gd-image-set-style: Internal functions
gd-image-set-thickness: Internal functions
gd-image-set-tile: Internal functions
gd-image-string: Internal functions
gd-image-string-ft: Internal functions
gd-image-string-ft-ex: Internal functions
gd-image-string-up: Internal functions
gd-image-true-color-to-palette: Internal functions
gd-image-wbmp-ptr: Internal functions
Generic Function, (setf current-style): Internal generic functions
Generic Function, angle-transformer: Internal generic functions
Generic Function, draw-polygon: Exported generic functions
Generic Function, h-inv-transformer: Internal generic functions
Generic Function, h-transformer: Internal generic functions
Generic Function, image: Internal generic functions
Generic Function, set-pixels: Exported generic functions
Generic Function, w-inv-transformer: Internal generic functions
Generic Function, w-transformer: Internal generic functions
Generic Function, x-inv-transformer: Internal generic functions
Generic Function, x-transformer: Internal generic functions
Generic Function, y-inv-transformer: Internal generic functions
Generic Function, y-transformer: Internal generic functions
get-pixel: Exported functions

H
h-inv-transformer: Internal generic functions
h-inv-transformer: Internal generic functions
h-transformer: Internal generic functions
h-transformer: Internal generic functions
hyperdoc-lookup: Internal functions

I
image: Internal generic functions
image: Internal generic functions
image-height: Exported functions
image-p: Internal functions
image-size: Exported functions
image-width: Exported functions
img: Internal functions
interlacedp: Exported functions

L
load-gd-glue: Internal functions

M
Macro, do-pixels: Exported macros
Macro, do-rows: Exported macros
Macro, make-stream-fn: Internal macros
Macro, with-animated-gif: Internal macros
Macro, with-clipping-rectangle: Exported macros
Macro, with-clipping-rectangle*: Exported macros
Macro, with-color-argument: Internal macros
Macro, with-default-color: Exported macros
Macro, with-default-font: Exported macros
Macro, with-default-image: Exported macros
Macro, with-image: Exported macros
Macro, with-image*: Exported macros
Macro, with-image-from-file: Exported macros
Macro, with-image-from-file*: Exported macros
Macro, with-image-from-gd2-part: Exported macros
Macro, with-image-from-gd2-part*: Exported macros
Macro, with-rebinding: Internal macros
Macro, with-safe-alloc: Internal macros
Macro, with-thickness: Exported macros
Macro, with-transformation: Exported macros
Macro, with-transformed-alternative: Internal macros
Macro, with-unique-names: Internal macros
Macro, without-transformations: Exported macros
make-anti-aliased: Exported functions
make-brush: Exported functions
make-image: Internal functions
make-stream-fn: Internal macros
make-tile: Exported functions
Method, (setf current-style): Internal generic functions
Method, (setf current-style): Internal generic functions
Method, angle-transformer: Internal generic functions
Method, draw-polygon: Exported generic functions
Method, draw-polygon: Exported generic functions
Method, h-inv-transformer: Internal generic functions
Method, h-transformer: Internal generic functions
Method, image: Internal generic functions
Method, set-pixels: Exported generic functions
Method, set-pixels: Exported generic functions
Method, w-inv-transformer: Internal generic functions
Method, w-transformer: Internal generic functions
Method, x-inv-transformer: Internal generic functions
Method, x-transformer: Internal generic functions
Method, y-inv-transformer: Internal generic functions
Method, y-transformer: Internal generic functions

N
number-of-colors: Exported functions

R
resolve-c-color: Internal functions
round-to-signed-byte-32: Internal functions

S
sans: Internal functions
save-alpha-p: Exported functions
set-anti-aliased: Internal functions
set-clipping-rectangle*: Exported functions
set-pixel: Exported functions
set-pixels: Exported generic functions
set-pixels: Exported generic functions
set-pixels: Exported generic functions

T
thickness: Exported functions
tile-img: Internal functions
tile-p: Internal functions
transparent-color: Exported functions
true-color-p: Exported functions
true-color-to-palette: Exported functions

W
w-inv-transformer: Internal generic functions
w-inv-transformer: Internal generic functions
w-transformer: Internal generic functions
w-transformer: Internal generic functions
with-animated-gif: Internal macros
with-clipping-rectangle: Exported macros
with-clipping-rectangle*: Exported macros
with-color-argument: Internal macros
with-default-color: Exported macros
with-default-font: Exported macros
with-default-image: Exported macros
with-image: Exported macros
with-image*: Exported macros
with-image-from-file: Exported macros
with-image-from-file*: Exported macros
with-image-from-gd2-part: Exported macros
with-image-from-gd2-part*: Exported macros
with-rebinding: Internal macros
with-safe-alloc: Internal macros
with-thickness: Exported macros
with-transformation: Exported macros
with-transformed-alternative: Internal macros
with-unique-names: Internal macros
without-transformations: Exported macros
write-gd-to-stream: Exported functions
write-gd2-to-stream: Exported functions
write-gif-to-stream: Exported functions
write-image-to-file: Exported functions
write-image-to-stream: Exported functions
write-jpeg-to-stream: Exported functions
write-png-to-stream: Exported functions
write-wbmp-to-stream: Exported functions

X
x-inv-transformer: Internal generic functions
x-inv-transformer: Internal generic functions
x-transformer: Internal generic functions
x-transformer: Internal generic functions

Y
y-inv-transformer: Internal generic functions
y-inv-transformer: Internal generic functions
y-transformer: Internal generic functions
y-transformer: Internal generic functions

Jump to:   %   (  
A   B   C   D   F   G   H   I   L   M   N   R   S   T   W   X   Y  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +  
A   C   D   H   I   S   W   X   Y  
Index Entry  Section

*
*cl-gd-directory*: Exported special variables
*current-animation*: Internal special variables
*default-color*: Exported special variables
*default-font*: Exported special variables
*default-image*: Exported special variables
*gd-supporting-libraries*: Internal special variables
*hyperdoc-base-uri*: Internal special variables
*null-image*: Internal special variables
*shared-library-directories*: Internal special variables
*shared-library-drive-letters*: Internal special variables
*shared-library-types*: Internal special variables
*transformers*: Internal special variables

+
+anti-aliased+: Internal constants
+brushed+: Internal constants
+gd-chord+: Internal constants
+gd-cmp-background+: Internal constants
+gd-cmp-color+: Internal constants
+gd-cmp-image+: Internal constants
+gd-cmp-interlace+: Internal constants
+gd-cmp-num-colors+: Internal constants
+gd-cmp-size-x+: Internal constants
+gd-cmp-size-y+: Internal constants
+gd-cmp-transparent+: Internal constants
+gd-cmp-true-color+: Internal constants
+gd-disposal-none+: Internal constants
+gd-disposal-restore-background+: Internal constants
+gd-disposal-restore-previous+: Internal constants
+gd-disposal-unknown+: Internal constants
+gd-edged+: Internal constants
+gd-ftex-linespace+: Internal constants
+gd-no-fill+: Internal constants
+max-colors+: Exported constants
+most-positive-unsigned-byte-32+: Internal constants
+radians-to-degree-factor+: Internal constants
+styled+: Internal constants
+styled-brushed+: Internal constants
+tiled+: Internal constants
+transparent+: Internal constants

A
angle-transformer: Internal classes

C
color: Internal structures
Constant, +anti-aliased+: Internal constants
Constant, +brushed+: Internal constants
Constant, +gd-chord+: Internal constants
Constant, +gd-cmp-background+: Internal constants
Constant, +gd-cmp-color+: Internal constants
Constant, +gd-cmp-image+: Internal constants
Constant, +gd-cmp-interlace+: Internal constants
Constant, +gd-cmp-num-colors+: Internal constants
Constant, +gd-cmp-size-x+: Internal constants
Constant, +gd-cmp-size-y+: Internal constants
Constant, +gd-cmp-transparent+: Internal constants
Constant, +gd-cmp-true-color+: Internal constants
Constant, +gd-disposal-none+: Internal constants
Constant, +gd-disposal-restore-background+: Internal constants
Constant, +gd-disposal-restore-previous+: Internal constants
Constant, +gd-disposal-unknown+: Internal constants
Constant, +gd-edged+: Internal constants
Constant, +gd-ftex-linespace+: Internal constants
Constant, +gd-no-fill+: Internal constants
Constant, +max-colors+: Exported constants
Constant, +most-positive-unsigned-byte-32+: Internal constants
Constant, +radians-to-degree-factor+: Internal constants
Constant, +styled+: Internal constants
Constant, +styled-brushed+: Internal constants
Constant, +tiled+: Internal constants
Constant, +transparent+: Internal constants

D
do-not-blend: Internal structures

H
h-inv-transformer: Internal classes
h-transformer: Internal classes

I
image: Internal classes
img: Internal structures

S
Slot, angle-transformer: Internal classes
Slot, color: Internal structures
Slot, do-not-blend: Internal structures
Slot, h-inv-transformer: Internal classes
Slot, h-transformer: Internal classes
Slot, image: Internal classes
Slot, img: Internal structures
Slot, w-inv-transformer: Internal classes
Slot, w-transformer: Internal classes
Slot, x-inv-transformer: Internal classes
Slot, x-transformer: Internal classes
Slot, y-inv-transformer: Internal classes
Slot, y-transformer: Internal classes
Special Variable, *cl-gd-directory*: Exported special variables
Special Variable, *current-animation*: Internal special variables
Special Variable, *default-color*: Exported special variables
Special Variable, *default-font*: Exported special variables
Special Variable, *default-image*: Exported special variables
Special Variable, *gd-supporting-libraries*: Internal special variables
Special Variable, *hyperdoc-base-uri*: Internal special variables
Special Variable, *null-image*: Internal special variables
Special Variable, *shared-library-directories*: Internal special variables
Special Variable, *shared-library-drive-letters*: Internal special variables
Special Variable, *shared-library-types*: Internal special variables
Special Variable, *transformers*: Internal special variables

W
w-inv-transformer: Internal classes
w-transformer: Internal classes

X
x-inv-transformer: Internal classes
x-transformer: Internal classes

Y
y-inv-transformer: Internal classes
y-transformer: Internal classes

Jump to:   *   +  
A   C   D   H   I   S   W   X   Y  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   A   B   C   I   P   S   T  
Index Entry  Section

A
anti-aliased-color: Internal structures

B
brush: Internal structures

C
cl-gd: The cl-gd system
cl-gd: The cl-gd package
cl-gd.system: The cl-gd<dot>system package
Class, transformer: Internal classes

I
image: Internal structures

P
Package, cl-gd: The cl-gd package
Package, cl-gd.system: The cl-gd<dot>system package
pixels-array: Internal types
pixels-row: Internal types

S
Structure, anti-aliased-color: Internal structures
Structure, brush: Internal structures
Structure, image: Internal structures
Structure, tile: Internal structures
System, cl-gd: The cl-gd system

T
t-pixels-array: Internal types
t-pixels-row: Internal types
tile: Internal structures
transformer: Internal classes
Type, pixels-array: Internal types
Type, pixels-row: Internal types
Type, t-pixels-array: Internal types
Type, t-pixels-row: Internal types

Jump to:   A   B   C   I   P   S   T