Pixmap(3pm)

πŸ’– Pixmap(3pm) πŸ’–

okay bestie, welcome to Pixmap(3pm), straight out of the User Contributed Perl Documentation bestie collection πŸŽ€


✨ NAME ✨

Tk::Pixmap β€” make color images out of XPM files, fr fr 🌈


✨ SYNOPSIS ✨

$widget->Pixmap?(name?,options?)?

✨ DESCRIPTION ✨

so like. XPM is this super popular X Window image file format for storing color icons, and the Pixmap image type is literally how you make color images using XPM files. no cap πŸ’…

Pixmaps support the following options, bestie β€” read them all, don't skip πŸ‘‘

  • -data => string β€” this one specifies the contents of the source pixmap as a string πŸ“ the string must adhere to the XPM file format (like, the way the pixmap(1) program generates it, iykyk). and listen: if you specify both the -data and -file options, then -data takes precedence. periodt. πŸ’…
⚠️ also pls be careful β€” the XPM file parsing code in the xpm library is somewhat fragile 😭 the first line of the string must be "/* XPM */", or otherwise a segmentation fault will be caused. like literally. not me warning you twice πŸ™ˆ
  • -file => name β€” name gives the name of a file whose contents define the source pixmap 🌸 the file must adhere to the XPM file format (e.g., as generated by the pixmap(1) program).

✨ IMAGE METHODS ✨

when a pixmap image is created, Tk also creates a new object πŸ¦‹ and that object supports the configure and cget methods described in Tk::options, which you can use to enquire about and modify the options described above ✨ obsessed, honestly.


✨ SEE ALSO ✨

  • Tk::Image πŸ’œ

✨ KEYWORDS ✨

pixmap, image, tix ⭐


and that's the whole vibe bestie πŸ’– this page is from perl v5.40.1, dated 2025-04-13, so go forth and pixmap responsibly 🫢✨

πŸ“¦ where this page comes from