Several options of the Tk photo image subcommands have no corresponding parameter in the :class:tkinter.PhotoImage methods and are currently reachable only through tk.call().
- The
-format option of put (since Tk 8.6) specifies the format of the image data.
- The
-metadata option of put, read, write and data (new in Tk 9.0) passes a metadata dictionary to the image format driver.
- The
-withalpha option of get (new in Tk 9.0) returns the alpha value of the pixel in addition to its color.
I propose to add the corresponding format and metadata parameters to put, the metadata parameter to read, write and data, and the withalpha parameter to get.
Linked PRs
Several options of the Tk photo image subcommands have no corresponding parameter in the :class:
tkinter.PhotoImagemethods and are currently reachable only throughtk.call().-formatoption ofput(since Tk 8.6) specifies the format of the image data.-metadataoption ofput,read,writeanddata(new in Tk 9.0) passes a metadata dictionary to the image format driver.-withalphaoption ofget(new in Tk 9.0) returns the alpha value of the pixel in addition to its color.I propose to add the corresponding
formatandmetadataparameters toput, themetadataparameter toread,writeanddata, and thewithalphaparameter toget.Linked PRs