img-pcx(3tk)
π img-pcx β the Paintbrush (pcx) era π
okay bestie, welcome to the Img manual page for img-pcx, part of the one and only Img package. she's giving Paintbrush format realness and honestly? iconic. let's get into it π
β¨ NAME β¨
img-pcx β Paintbrush format (pcx)
πΈ SYNOPSIS πΈ
package require img::pcx ?2.1?
π¦ DESCRIPTION π¦
package require img::pcx
So like all the packages in Img, this one does not hand you brand-new commands. rude? no, actually it's the whole vibe. instead it extends the Tk command image, so that it supports files holding raster images in the Paintbrush format (pcx). More specifically, img::pcx extends Tk's photo image type (yes, the [https://www.tcl.tk/man/tcl9.0/TkCmd/photo.html] one π«Ά).
The name of the new format handler is pcx. This handler serves up some new additional configuration options. Slide into the Options section for the detailed explanations, iykyk.
All of the above means that in a call like
image create photo ?name? ?options?
- Image data in
pcxformat (options-dataand-file) is detected automatically. β¨ - The format name
pcxis recognized by the option-format. π
On top of that, the value of option -format is treated as a list and may contain any of the special options listed in the Options section. so you can stack them, slay.
The package img::pcx is a sub-package of Img. You can load it as part of the complete Img support, via package require Img, or on its own, via package require img::pcx. your call, main character π
π SUPPORTED TYPES π
This format handler supports the following image types:
- 1-bit pixels: Black and White.
- 8-bit pixels: Grayscale or indexed.
- 24-bit pixels: Truecolor (RGB, 8-bit channels).
All images types may be either uncompressed or run-length encoded. periodt.
Image | Read | Write |
type | -file | -data | -file | -data |
----------------------------------------
1-bit | Yes | Yes | No | No |
8-bit | Yes | Yes | No | No |
24-bit | Yes | Yes | Yes | Yes |
π NOTES π
- Chapter Image Metadata of the Img manual page describes the parameters of the resolution related options. go read her, she knows things π
π OPTIONS π
The handler provides the following options:
-verbose boolβ This option is supported for reading and writing. Available since version 1.3. If set to true, additional information about the read or written image is printed to stdout. Default isfalse. (yes she will literally narrate at you, love that for her)-compression stringβ This option is supported for writing only. Available since version 1.3. Set the compression mode to eithernoneorrle. Default isrle.-resolution xres ?yres?β This option is supported for writing only. Available since version 2.0. Set the resolution values of the written image file. If yres is not specified, it is set to the value of xres. If option is not specified, the DPI and aspect values of the metadata dictionary are written. If no metadata values are available, no resolution values are written.-xresolution xresβ This option is supported for writing only. Available since version 2.0. Set the horizontal resolution value of the written image file.-yresolution yresβ This option is supported for writing only. Available since version 2.0. Set the vertical resolution value of the written image file.
π SEE ALSO π
img, img-bmp, img-dted, img-flir, img-gif, img-ico, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga, img-tiff, img-window, img-xbm, img-xpm
like the whole friend group honestly π«Ά
π COPYRIGHT π
Copyright (c) 1995-2025 Jan Nijtmans <nijtmans@users.sourceforge.net>
Copyright (c) 2002-2025 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Copyright (c) 2003-2025 Paul Obermeier <obermeier@users.sourceforge.net>
and that's the whole page bestie, no cap β¨ this was img-pcx, version 2.1, from the Img manual (section 3tk). ty for reading my essay, go make some pcx files, ily πππ¦
π¦ where this page comes from
- ubuntu resolute: libtk-img-doc 1:2.1.0+dfsg1-1 Β· Tcl
- ubuntu stonking: libtk-img-doc 1:2.1.1+dfsg1-2 Β· Tcl
- Copyright (c) 1995-2025 Jan Nijtmans <nijtmans@users\&.sourceforge\&.net>
- Copyright (c) 2002-2025 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- Copyright (c) 2003-2025 Paul Obermeier <obermeier@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms