Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #119: evil hackers from Serbia.


comp / comp.lang.tcl / canvas pixel commands?

SubjectAuthor
* canvas pixel commands?saito
`* canvas pixel commands?clt.to.davebr
 `- Re: canvas pixel commands?saito

1
Subject: canvas pixel commands?
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 30 Oct 2024 20:40 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: canvas pixel commands?
Date: Wed, 30 Oct 2024 16:40:08 -0400
Organization: A noiseless patient Spider
Lines: 2
Message-ID: <vfu5j9$2a7d2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Oct 2024 21:40:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ebeb6c6391195ad00c93906d467ee585";
logging-data="2432418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pyLchRZIvot72N9y+zqRJ"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Kl3TFgsaDrDcZfjC/11Ph6dmYCA=
Content-Language: en-US
View all headers

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

Subject: canvas pixel commands?
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 3 Nov 2024 02:53 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Subject: canvas pixel commands?
Date: Sun, 03 Nov 24 02:53:32 GMT
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <06417306024121001@llp>
References: <vfu5j9$2a7d2$1@dont-email.me>
Injection-Date: Sun, 03 Nov 2024 03:57:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="86793922934bb8574b057c63d545e33f";
logging-data="213239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jAb4NfyY1YwJ+C1QktN2L"
Cancel-Lock: sha1:KvTg4KkNzNKxPhPTaFXIwdThVO0=
In-Reply-To: <vfu5j9$2a7d2$1@dont-email.me>
View all headers

>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

Subject: Re: canvas pixel commands?
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 3 Nov 2024 19:04 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: Re: canvas pixel commands?
Date: Sun, 3 Nov 2024 14:04:15 -0500
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vg8hfh$g6vt$1@dont-email.me>
References: <vfu5j9$2a7d2$1@dont-email.me> <06417306024121001@llp>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 03 Nov 2024 20:04:18 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8c002cfb7ea6eb03dc1e117cfce965bc";
logging-data="531453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JXdueG20x4y0IgierpfcU"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XvExxMtkrNISiAgAjJTs3FXkwYk=
Content-Language: en-US
In-Reply-To: <06417306024121001@llp>
View all headers

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.

1

rocksolid light 0.9.8
clearnet tor