Tkinter-PhotoImage question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gregor Lingl

    Tkinter-PhotoImage question

    Hi all,

    The Tkinter PhotoImage Widget can be set to
    "transparen t" with the method blank().

    Moreover the color of single pixels or
    definite regions can be set with method put.

    I'd like to set single pixels (or some rectangular
    regions) to "transparen t". Can I use put to
    accomplish this, and if so, which first argument
    ("data") have I to pass to put?

    If not, is there another way to do it?

    Thanks, Gregor

  • Michael Peuser

    #2
    Re: Tkinter-PhotoImage question


    "Gregor Lingl" <glingl@aon.a t> schrieb im Newsbeitrag
    news:3F6CB8F4.8 020001@aon.at.. .[color=blue]
    > Hi all,
    >
    > The Tkinter PhotoImage Widget can be set to
    > "transparen t" with the method blank().
    >
    > Moreover the color of single pixels or
    > definite regions can be set with method put.
    >
    > I'd like to set single pixels (or some rectangular
    > regions) to "transparen t". Can I use put to
    > accomplish this, and if so, which first argument
    > ("data") have I to pass to put?
    >
    > If not, is there another way to do it?[/color]

    Hi Gregor,
    I know of no way to accomplish this with PhotoImage... I am using PIL which
    is *much* more versatile, you have true alpha-blending and masks, and it
    also works faster with larger images.

    Kindly
    MichaelP


    Comment

    Working...