|Don't ask to ask, just ask|
Question about Tk Canvas, pixels, and imagesby atcroft (Abbot)
|on Apr 09, 2001 at 09:12 UTC||Need Help??|
atcroft has asked for the
wisdom of the Perl Monks concerning the following question:
I humbly beseech your knowledge, as I have been to the meager limits of my search abilities but to no avail.
I am using 'use Tk;' and the Canvas object for creating displays on a screen. I am looking for a way to manipulate it at a pixel-level for parts of what I need to do. So far, I finally found a way to create an individual pixel (CreateText, using a '.' -is there a better way), but I cannot seem to find information on:
(a) how to create an savable image from a Canvas, or
(b) how to get the color of a pixel at a particular location on a Canvas.
Your guidance I humbly seek.
A journey of a 1000 lines of code begins with a single keystroke.