point.c 601 B

1234567891011121314151617181920212223242526272829
  1. /*!
  2. \file lib/pngdriver/point.c
  3. \brief GRASS png display driver - draw point
  4. (C) 2007-2014 by Glynn Clements and the GRASS Development Team
  5. This program is free software under the GNU General Public License
  6. (>=v2). Read the file COPYING that comes with GRASS for details.
  7. \author Glynn Clements
  8. */
  9. #include <grass/gis.h>
  10. #include "pngdriver.h"
  11. /*!
  12. \brief Draw point
  13. */
  14. void PNG_Point(double x, double y)
  15. {
  16. static double point_size = 1.0;
  17. double half_point_size = point_size / 2;
  18. PNG_Box(x - half_point_size, y - half_point_size,
  19. point_size, point_size);
  20. }