• canvas pixel commands?

    From saito@saitology9@gmail.com to comp.lang.tcl on Wed Oct 30 16:40:08 2024
    From Newsgroup: comp.lang.tcl

    Does the canvas allow for pixel level access? I am mostly interested in getting the color at a certain pixel within the canvas.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From clt.to.davebr@clt.to.davebr@dfgh.net to comp.lang.tcl on Sun Nov 3 02:53:32 2024
    From Newsgroup: comp.lang.tcl

    From: saito <saitology9@gmail.com>
    Date: Wed, 30 Oct 2024 16:40:08 -0400
    Subject: canvas pixel commands?

    Does the canvas allow for pixel level access? I am mostly interested in >getting the color at a certain pixel within the canvas.

    The Img package includes img-window that can create a Tk photo image of the canvas window.

    More recent Tk's (9.0?) have a canvas subcommand image that creates a Tk photo image of the canvas.

    Once you have a Tk photo image, the get subcommand can read any pixel.

    Dave B

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Sun Nov 3 14:04:15 2024
    From Newsgroup: comp.lang.tcl

    On 11/2/2024 10:53 PM, clt.to.davebr@dfgh.net wrote:

    More recent Tk's (9.0?) have a canvas subcommand image that creates a Tk photo image of the canvas.

    Once you have a Tk photo image, the get subcommand can read any pixel.

    Thank you.
    --- Synchronet 3.20a-Linux NewsLink 1.114