PNG(3)

🌸 NAME 🌸

Tk::PNG β€” PNG loader for Tk::Photo, periodt. This is the PNG(3) page from the perl/Tk Documentation, bestie, and it's literally all about loading PNGs into Tk photos. Iconic.

✨ SYNOPSIS ✨

Okay so you just do this, no cap:

use Tk;
use Tk::PNG;

my $image = $widget->Photo('-format' => 'png', -file => 'something.png');

That's the whole vibe. Slay.

πŸ¦‹ DESCRIPTION πŸ¦‹

This is an extension for Tk which supplies PNG format loader for Photo image type. So yeah β€” it gives Photo images the power to load PNG format. Main character energy for your image loader, honestly. πŸ’…

πŸŽ€ HISTORY πŸŽ€

This extension is by default bundled with Perl/Tk since Tk804. So it's been riding with Perl/Tk by default since then β€” lowkey iconic. ✨

πŸ’– AUTHOR πŸ’–

Nick Ing-Simmons <nick@ing-simmons.net> β€” thank you for your service, bestie. 🫢

🌈 SEE ALSO 🌈

  • Tk::Photo β€” go read that too, iykyk.

Mwah πŸ’… this page is from Tk4.004, dated 2025-07-31, and its manual name is PNG(3). Byeee! πŸŽ€

πŸ“¦ where this page comes from