From: Philip Aker <philip@vc...> - 2005-03-14 23:29:27
On Monday, Mar 14, 2005, at 02:48 US/Pacific, Mats Bengtsson wrote:
> The line is not anti-aliased. Drawing anti-aliased lines seems to
> produce the expected results with expected approximate widths.
I have put in the public folder of my iDisk (account name
'philip_aker'), 3 examples. One is the same "Collage" subview with
anti-aliasing turned off. As you can see, the line width of the border
is the same. There are also 2 other comparative examples with the same
square being drawn with and without antialiasing.
Other info that may be relevant is that I draw into windows with
compositing turned on and receive the context as one of the parameters
for drawing HIViews.
> If you take a peek at the TclOSA example on my site
> <http://www.aker.ca> in OSA Components -> UI Screenshots -> last
> example: "Images", the greenish overlay with the caption "Festival" is
> using CGContextStrokeRectWithWidth() with width set to 1. There are a
> few differences due to clip factors and screen res, but in my
> experience CG calls always render the stroke width as specified. The
> screenshots were taken on 10.2.8.
> Never tested anyting else than the path drawing apis. Perhaps there is
> a difference?
> But that seems very weird.
> AquaTk's CG drawing seem to use path apis most of the time anyway.
Get latest updates about Open Source Projects, Conferences and News.