Re: Announce: tkpath 0.2




Roy Terry skrev:

Is anti-aliased text on demand a possibility?


I haven't yet bothered thinking about text.

The core part is the path item which is very flexible. For items that
are
similar to existing canvas items I have prepended the names with a "p".

Perhaps you would consider adding the leading 'p' in all cases
to ease the memory load when mixing conventional and tkpath-based
canvas items. If tkpath items were being added to existing canvas
code it seems one could easily forget that "oval" was native to the
canvas and elllipse was xpath. I suggest having the leading 'p'
in all cases will be most helpful (pcircle, pellipse).

Maybe.


A lot more path-based items. 0.1 only
had paths!
I'm curious, aside from compactness, does
drawing a rect with 'prect" offer advantages to
drawing it with 'path'? Same question for other
shapes.

I'm trying to pick "native" APIs if they can be used.
A prect with no radius draws using native Rect API in most cases,
while if rounded I construct it using paths internally only.
Circle/ellipse are always using native APIs for drawing.


Feature suggestion: Any chance of
being able to set anti-alias on a per-item
basis (over-riding the default)? Some items
at small sizes just look better without it.

See my note about pixel alignment which may help.
I'm not so fond of your idea.

Looking at the doc/readme, it lists the options
for items but still says "not all are implemented".
Would be nice if you could mark which ones do
work as sometimes I'm not sure if an option is
not implemented or my setting is wrong.

It is the -*stipple -*offset ones that are unimplemented.
Maybe I optimistically added -strokegradient to the code
but that is also unimplemented. Not sure how -state is supposed to
work.


I am using the 0.1 binary with Tcl/Tk 8.4.9 on xp and w2000.
Will the 0.2 binary work with those versions too?


Hopefully ;-)

Mats

.



Relevant Pages

  • Re: Announce: tkpath 0.2
    ... tkpath seems like a very nice addition to Tk. ... only permmits very simple drawing. ... > similar to existing canvas items I have prepended the names with a "p". ... A prect with no radius draws using native Rect API in most cases, ...
    (comp.lang.tcl)
  • Re: How to determine current display list position of a canvas item?
    ... Once I'm done drawing all items... ... Get a list of all canvas items ... Mark the item just above the select item with: $c addtag tempMarker ... put it back with: $c lower currentItem tempMarker ...
    (comp.lang.tcl)
  • Re: How to determine current display list position of a canvas item?
    ... Once I'm done drawing all items... ... Get a list of all canvas items ... Use that other item with the raise/lower subcommand in order to ... place my item back in its original position. ...
    (comp.lang.tcl)