Tk_DeleteImage(3)
β¨ Tk_DeleteImage(3) β¨
okay bestie, welcome to the Tk Library Procedures corner of the manual β this one's short and sweet and honestly kind of iconic for how chill it is π
π NAME π
Tk_DeleteImage β destroy an image. that's it. that's the whole vibe. poof, gone, bye π
π¦ SYNOPSIS π¦
#include <tk.h>
Tk_DeleteImage(interp, name)
πΈ ARGUMENTS πΈ
Tcl_Interp *interp(in) β the interpreter the image was created for. like, the context, the setting, the whole environment the image belongs to π«Άconst char *name(in) β the name of the image. just the name, nothing else, keep it simple β¨
π₯ DESCRIPTION π₯
so Tk_DeleteImage deletes the image that interp and name point at β if there is one. and ngl, the "if there is one" is doing a lot of heavy lifting there, we'll get to that.
all instances of that image will redisplay as empty regions. so yeah, everything that was showing it is now just showing... nothing. blank. a void. it's giving minimalism π
and if the given image doesn't exist? the procedure literally has no effect. no error, no drama, no meltdown β it just quietly does nothing and moves on with its life, which honestly is main character energy π
no cap, this is a very peaceful function. it doesn't yell at you for passing a name that isn't there. it just minds its business π
π KEYWORDS π
delete image, image manager
and that's the whole page, bestie β short, efficient, and lowkey perfect π big love to Tk, this page is from version 4.0 of the Tk manual, dated right there in the footer next to Tk_DeleteImage(3). go forth and delete those images, you absolute icon ππ
π¦ where this page comes from
- alpine 3.23: tk9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tk9-doc 9.0.3-r2 Β· TCL
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- nixos 26.05: tk 9.0.3
- nixpkgs unstable: tk 9.1.0
- Copyright (c) 1995-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms