img-xbm(n)
π img-xbm β X Windows Bitmap format (xbm) π
okay bestie, so this is the manual page for img-xbm, a lil sub-package of the Img crew. If you've ever wanted Tk to slurp up an .xbm file like it's nothing, this is the girlypop for you. let's get into it β¨
β¨ SYNOPSIS β¨
package require img::xbm ?2.1?
that's it. that's the whole entrance. she's low maintenance π
πΈ DESCRIPTION πΈ
package require img::xbm
So like all the packages in Img, this one does NOT invent new commands. no new toys. instead it extends the Tk command image so that it can handle files holding raster images in the X Windows Bitmap format (xbm). more specifically? img::xbm extends Tk's photo image type. she's a glow-up, not a whole new person π¦
The name of the new format handler is xbm. This handler brings new additional configuration options. (peep the Options section below for the deets, bestie.)
All of the above means that in a call like:
image create photo ?name? ?options?
- Image data in
xbmformat (options-dataand-file) is detected automatically. she just knows. no cap. - The format name
xbmis recognized by the option-format.
In addition, the value of option -format is treated as a list and may contain any of the special options listed in the Options section. multitasking icon behavior fr fr π
The package img::xbm is a sub-package of Img. You can load it as a part of the complete Img support, via package require Img, or on its own, via package require img::xbm. your choice, bestie, both are valid π«Ά
π OPTIONS π
The handler provides the following options:
-verbosebool β supported for reading and writing. Available since version2.0. If set to true, additional information about the read or written image is printed tostdout. Default isfalse. (so she'll yap if you let her π)-foregroundstring β supported for reading only. Available since version1.4.15. Sets the foreground color of the bitmap. Default value isblack. The color string may be given in a format as accepted byTk_GetColor. iconic default honestly π€-backgroundstring β supported for reading only. Available since version1.4.15. Sets the background color of the bitmap. Default value istransparent. The color string may be given in a format as accepted byTk_GetColor. transparent default?? we love a see-through moment β¨
π 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
(the whole friend group showed up. we stan a supportive squad π«Ά)
π 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>
k that's the whole page bestie, no gatekeeping here π
and for the lil sign-off moment: this was the img-xbm page, version 2.1, from the Img manual β go forth and convert ur bitmaps, main character πβ¨
π¦ where this page comes from
- fedora 43: tkimg 2.1.1-1.fc43 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 43: tkimg 2.1.1-1.fc43 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.0-2.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.0-2.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.1-1.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.1-1.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- nixos 26.05: tkimg 2.1.1
- nixpkgs unstable: tkimg 2.1.1
- 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