[GRASS-dev] [GRASS GIS] #72: PNG driver: boundary rendering is off by one pixel

GRASS GIS trac at osgeo.org
Wed Jul 24 13:27:05 PDT 2013


#72: PNG driver: boundary rendering is off by one pixel
-------------------------------------------+--------------------------------
 Reporter:  hamish                         |       Owner:  grass-dev@…              
     Type:  defect                         |      Status:  new                      
 Priority:  critical                       |   Milestone:  6.4.4                    
Component:  Default                        |     Version:  svn-develbranch6         
 Keywords:  d.vect, rendering, PNG_DRIVER  |    Platform:  Unspecified              
      Cpu:  Unspecified                    |  
-------------------------------------------+--------------------------------

Comment(by mmetz):

 Replying to [comment:22 hamish]:
 > Hi,
 >
 > there is a similar off-by-one problem in the Cairo driver for 6.4 and
 6.5, very easy to reproduce:
 >
 {{{
 export GRASS_WIDTH=100
 export GRASS_HEIGHT=100
 d.mon start=cairo
 d.mon stop=cairo
 }}}
 >
 > you will see a single pixel black line along both the right and bottom
 edges of the resulting map.png file. (trouble if you wanted to use
 GRASS_TRANSPARENT=TRUE)

 This has been introduced by you with r12527. Reverting r12527 removes the
 single pixel black line along both the right and bottom edges. Do you
 remember by any chance the reason for r12527?

 Note that the line drawn by D_show_window() on the left and top edges is
 outside the current frame.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/72#comment:23>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list