Tk Library Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: d5e3a8eddd1ccdfc2f53c9a6a53de983e20fd1b7
Title: partial canvas::snap output, osx
Type: Bug Version: 1.0.1
Submitter: anonymous Created on: 2016-12-23 22:43:32
Subsystem: tklib :: canvas Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2016-12-23 22:43:32
Resolution: None Closed By: nobody
    Closed on:
Description:
canvas::snap output is incorrect under osx;
this is potentially due to the canvas being
drawn on an hidpi (retina) display.

to reproduce:

--8<-----------------------------------
pack [canvas .c -width 200 -height 100]
.c create rectangle 10 10 60 60

package require canvas::snap
file temp filename snap.png
[canvas::snap .c] write $filename
puts $filename
exit
--8<-----------------------------------

output:

- https://imgur.com/a/ceYtb (osx)
- https://imgur.com/a/aakol (linux)