Commit 0d55d8dd authored by David Lichteblau's avatar David Lichteblau
Browse files

get-pixel fuer's bildermalen


git-svn-id: svn://bknr.net/svn/trunk/thirdparty/cl-gd@505 4281704c-cde7-0310-8518-8e2dc76b1ff0
parent 28dac513
Loading
Loading
Loading
Loading
+9 −1
Changes for drawing.lisp: 9 added lines, 1 removed line.
Original line number Diff line number Diff line
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-GD; Base: 10 -*-
;;; $Header: /home/manuel/bknr-cvs/cvs/thirdparty/cl-gd/drawing.lisp,v 1.1 2004/06/23 08:27:10 hans Exp $
;;; $Header: /home/manuel/bknr-cvs/cvs/thirdparty/cl-gd/drawing.lisp,v 1.2 2004/09/29 17:59:00 david Exp $

;;; Copyright (c) 2003, Dr. Edmund Weitz.  All rights reserved.

@@ -29,6 +29,14 @@

(in-package :cl-gd)

(defun get-pixel (x y &key (image *default-image*))
  "Return the color of the pixel at point \(X,Y)."
  (check-type image image)
  (with-transformed-alternative
      ((x x-transformer)
       (y y-transformer))
    (gd-image-get-pixel (img image) x y)))

(defun set-pixel (x y &key (color *default-color*) (image *default-image*))
  "Draws a pixel with color COLOR at point \(X,Y)."
  (check-type image image)