[Bug?] gs:canvas
Posted: Thu Aug 30, 2007 2:28 pm
Hi Lutz,
Seems the canvas is not the size of the frame?
(gs:frame 'demo 100 100 200 200 "demo")
(gs:canvas 'canvas)
(gs:add-to 'demo 'canvas)
(gs:set-background 'canvas gs:black)
now if it do ->
(gs:draw-rect 'R1 0 0 10 10 gs:red )
its indeed at 0,0
if i do ->
(gs:draw-rect 'R1 190 0 10 10 gs:red )
Its out of bound, This is missing 0.5 pixels in the frame
if i do it Horizotal and vertical ->
(gs:draw-rect 'R1 95 190 10 10 gs:red )
Its out of bound and totaly out of the frame...which is odd...?
Any hints?
Norman.
Seems the canvas is not the size of the frame?
(gs:frame 'demo 100 100 200 200 "demo")
(gs:canvas 'canvas)
(gs:add-to 'demo 'canvas)
(gs:set-background 'canvas gs:black)
now if it do ->
(gs:draw-rect 'R1 0 0 10 10 gs:red )
its indeed at 0,0
if i do ->
(gs:draw-rect 'R1 190 0 10 10 gs:red )
Its out of bound, This is missing 0.5 pixels in the frame
if i do it Horizotal and vertical ->
(gs:draw-rect 'R1 95 190 10 10 gs:red )
Its out of bound and totaly out of the frame...which is odd...?
Any hints?
Norman.