The subject line says all. Is there a way to create/modify a bitmap
image on screen pixelwise?
Until now I've only found the possibility to redraw the whole image
after individual pixel changes.
Thanks in advance.
Am 07.11.2023 um 11:09 schrieb Manuel Collado:
The subject line says all. Is there a way to create/modify a bitmap
image on screen pixelwise?
Until now I've only found the possibility to redraw the whole image
after individual pixel changes.
Thanks in advance.
Yes, there is.
https://www.tcl-lang.org/man/tcl8.6/TkCmd/photo.htm#M30
You will need Tk 8.7 to manipulate the full alpha channel.
El 7/11/23 a las 11:55, Harald Oehlmann escribi??:
Am 07.11.2023 um 11:09 schrieb Manuel Collado:
The subject line says all. Is there a way to create/modify a bitmap
image on screen pixelwise?
Until now I've only found the possibility to redraw the whole image
after individual pixel changes.
Thanks in advance.
Yes, there is.
https://www.tcl-lang.org/man/tcl8.6/TkCmd/photo.htm#M30
You will need Tk 8.7 to manipulate the full alpha channel.
Sorry for not being clear enough. Subject updated. I'm working on bitmap images. The 'put' image command seems to be only available for photos.
Anyway thanks for your hint. Perhaps I should consider using photos
instead of bitmaps.
On 2023-11-08, Manuel Collado <mcollado2011@gmail.com> wrote:
El 7/11/23 a las 11:55, Harald Oehlmann escribi??:
Am 07.11.2023 um 11:09 schrieb Manuel Collado:
The subject line says all. Is there a way to create/modify a bitmap
image on screen pixelwise?
...
Anyway thanks for your hint. Perhaps I should consider using photos
instead of bitmaps.
Sorry is there a difference? A photo is an image and both are displayed
as some form of bitmap.
Jim Jackson <jj@franjam.org.uk> wrote:
On 2023-11-08, Manuel Collado <mcollado2011@gmail.com> wrote:
El 7/11/23 a las 11:55, Harald Oehlmann escribi??:
Am 07.11.2023 um 11:09 schrieb Manuel Collado:
The subject line says all. Is there a way to create/modify a bitmap
image on screen pixelwise?
...
Anyway thanks for your hint. Perhaps I should consider using photos
instead of bitmaps.
Sorry is there a difference? A photo is an image and both are displayed
as some form of bitmap.
From the perspective of the image data, no.
For Tcl, it defines two different "image types":
man n image:
BUILT-IN IMAGE TYPES
The following image types are defined by Tk so they will be
available in any Tk application. Individual applications or
extensions may define additional types.
bitmap Each pixel in the image displays a foreground color, a
back???ground color, or nothing. See the bitmap manual
entry for more information.
photo Displays a variety of full-color images, using dithering to ap???
proximate colors on displays with limited color
capabilities. See the photo manual entry for more
information.
And the available Tcl sub-commands for manipulating the two different
types of images are different.
On 2023-11-08, Rich <ri...@example.invalid> wrote:
Jim Jackson <j...@franjam.org.uk> wrote:
On 2023-11-08, Manuel Collado <mcolla...@gmail.com> wrote:
El 7/11/23 a las 11:55, Harald Oehlmann escribi??:
Am 07.11.2023 um 11:09 schrieb Manuel Collado:
The subject line says all. Is there a way to create/modify a bitmap >>>>> image on screen pixelwise?
...
Anyway thanks for your hint. Perhaps I should consider using photos
instead of bitmaps.
Sorry is there a difference? A photo is an image and both are displayed >> as some form of bitmap.
From the perspective of the image data, no.
For Tcl, it defines two different "image types":
man n image:
BUILT-IN IMAGE TYPES
The following image types are defined by Tk so they will be
available in any Tk application. Individual applications or
extensions may define additional types.
bitmap Each pixel in the image displays a foreground color, a
back???ground color, or nothing. See the bitmap manual
entry for more information.
photo Displays a variety of full-color images, using dithering to ap??? proximate colors on displays with limited color
capabilities. See the photo manual entry for more
information.
And the available Tcl sub-commands for manipulating the two different types of images are different.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 30:15:37 |
Calls: | 9,739 |
Calls today: | 29 |
Files: | 13,741 |
Messages: | 6,183,044 |
Posted today: | 2 |