img-pcx(3tk)

πŸ“¦
version 2.1.1 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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?
  1. Image data in pcx format (options -data and -file) is detected automatically. ✨
  2. The format name pcx is 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 πŸ’€

  1. 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 is false. (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 either none or rle. Default is rle.
  • -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 (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