canvas pixel commands?

Liste des GroupesRevenir à cl tcl 
Sujet : canvas pixel commands?
De : clt.to.davebr (at) *nospam* dfgh.net
Groupes : comp.lang.tcl
Date : 03. Nov 2024, 03:53:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <06417306024121001@llp>
References : 1
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


Date Sujet#  Auteur
30 Oct 24 * canvas pixel commands?3saito
3 Nov 24 `* canvas pixel commands?2clt.to.davebr
3 Nov 24  `- Re: canvas pixel commands?1saito

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal