Re: XOR drawing on Tk canvas?

From: Donald Arseneau (asnd_at_triumf.ca)
Date: 01/28/04


Date: 27 Jan 2004 15:08:48 -0800

Jeff Hobbs <jeffh@activestate.com> writes:

> Jason Harper wrote:
> > What I REALLY want is a "color blend" drawing mode, so I could subtly
> > tint the desired squares. But it's hard to imagine a toolkit that has
> > that, but not the more basic XOR mode.
>
> Aha! That, Tk has, as of 8.4.5 (most recent stable) in a limited
> fashion. It supports transparency in images, so you could have
> semi-transparent PNG images (use the Img extension to get the
> extra image formats).

To clarify: you do not need separate images for every map square;
just an image of a plain colored square, with a transparency level.
Place this image (repeatedly) over the parts of the map needing
highlighing.

Donald Arseneau asnd@triumf.ca



Relevant Pages

  • Re: Square milk!
    ... I've just spent several minutes googling (web and images) and am certain ... with roughly rounded corners, again, rectangular rather than square. ... I used the search string "plastic square jug milk gallon new costco" ... Ultra Ultimate Kitchen Rule - Use the Timer! ...
    (rec.food.cooking)
  • Re: least square estimate - beginners question
    ... I've started to work on problem of alignment of 2 images. ... A is 3x3 matrix with 8 unknowns. ... probably have to obtain the matrix A by the least square estimation. ... I'm puzzled by your transformation. ...
    (comp.soft-sys.matlab)
  • Re: side by side text and table/figures - How?
    ... I've used images before and just formatted the object to be square so ... you can click the Positioning ... you can right-click the object and choose Text Wrapping> ...
    (microsoft.public.word.pagelayout)
  • Re: Need an imaging esize program - help please!
    ... Pete wrote: ... We just need uniform square sizing for all our pics to make the website ... It constrains both the width and height of the resized images, ... I suggest that this type of mechanical resizing will give unsatisfactory results in many pictures. ...
    (rec.photo.digital)