Tk_DeleteImage(3tk)
π Tk_DeleteImage β bestie, we're deleting an image π
okay so this is the Tk_DeleteImage page from the Tk library procedures manual (yes, section 3tk, we love her) β it's the little function that goes β¨ poof β¨ on an image. Let's get into it. π
β¨ NAME β¨
Tk_DeleteImage β Destroy an image. just straight up delete it, no notes π
πΈ SYNOPSIS πΈ
#include <tk.h>
Tk_DeleteImage(interp, name)
that's the whole vibe. two args, one include, zero drama. π¦
π«Ά ARGUMENTS π«Ά
Tcl_Interp *interp(in) β the interpreter for which the image was created. like, whose image is this? that one. πconst char *name(in) β the name of the image. the name, bestie. the actual name. π
π DESCRIPTION π
So Tk_DeleteImage deletes the image that's identified by interp and name, if there is one. That's it. That's the whole job. π
Every instance of that image is gonna redisplay as empty regions β like, the picture is gone gone, and what's left behind is just blank space where it used to be. not a placeholder, not a broken-image icon, just emptiness. π
And if the image you asked about doesn't exist at all? then the procedure has no effect. Nothing happens. No error, no crash, no screaming. It justβ¦ doesn't do anything. iconic, honestly π
Heads up bestie: no return value mentioned, no error mentioned β this one is a quiet deleter. It doesn't tell you if it worked. It just does the thing. π
π KEYWORDS π
delete image, image manager iykyk π
and that's the page!! mwah π This one comes to you from the Tk library docs, version 4.0, and it lives under the name Tk_DeleteImage(3tk) β dated right there alongside that same 4.0 release. slay, go delete something (responsibly) πβ¨π¦
π¦ where this page comes from
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 1995-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms