From: SourceForge.net <no...@so...> - 2003-10-30 15:06:20
|
Bugs item #829925, was opened at 2003-10-25 01:58 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=829925&group_id=12997 Category: 41. Photo Images Group: 8.4.4 Status: Open Resolution: None Priority: 7 Submitted By: Jeffrey Hobbs (hobbs) Assigned to: Donal K. Fellows (dkf) Summary: image put errors on "" color Initial Comment: image put dies when passed "" as a color, although this can be used in various other places in Tk to mean an "empty" color or transparent color. image put should do the same, so you can pass in large color arrays that don't specifically have to set a color for all pixels. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2003-10-30 15:06 Message: Logged In: YES user_id=79902 It's *extremely* difficult to get both @0 and "" supported at the same time with different behaviour as you suggest. The problem is that setting a pixel to be transparent requires one kind of compositing rule (set) and ignoring a pixel requires another (overlay). ---------------------------------------------------------------------- Comment By: Eric Boudaillier (beric) Date: 2003-10-30 14:47 Message: Logged In: YES user_id=493507 Donal, Could you look at the last part of FR 557090 before TIP'ing, dealing with "xcolor@alpha" syntax ? Then, setting transparent pixel could be done with @0, and "" could denote a "do nothing" behaviour. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2003-10-29 14:49 Message: Logged In: YES user_id=79902 I've been thinking about this a bit more, and I feel that the empty string ought to represent a transparent pixel, and not a pixel that should be ignored when writing into the image. The idea is that you are putting a blank into the image. OTOH, I might do a TIP for all this anyway so that I can add a syntax for specifying non-trivial transparency at the same time. ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2003-10-28 22:25 Message: Logged In: YES user_id=72656 1. It requires a TIP if you view it as not a bug. 2. This may justify it more as TIP-worthy. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2003-10-25 02:27 Message: Logged In: YES user_id=79902 Q1: Does this require a TIP to fix? Q2: Should the empty string indicate that a pixel is to be ignored or that a pixel is to be made transparent? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=829925&group_id=12997 |