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 thepixmap(1)program generates it, iykyk). and listen: if you specify both the-dataand-fileoptions, then-datatakes 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 thepixmap(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
- debian trixie: perl-tk 1:804.036+dfsg1-5
- ubuntu questing: perl-tk 1:804.036+dfsg1-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms