Graphics context Docs
Christopher Barker
Chris.Barker at noaa.gov
Tue Sep 4 22:55:42 PDT 2007
Hi all,
I've started the very beginning of poking around with GraphicsContext.
I'm hoping to make use of it for FloatCanvas. However, I'm unable to
find any overview-type docs. Is there such a thing anywhere?
Anyway, the topic at hand:
I'm trying to figure out how to draw a line (maybe a polyline, actually)
that "fades away" -- that is, it starts alpha=255 and ends at alpha=0.
I found CreateLinearGradientBrush(), which is almost what I want, but
since I'm drawing a line, not really. Are there any Gradient Pens?
Otherwise, I guess I have to draw a really skinny polygon with a
GradientBrush, but that sure feels kludgy.
-thanks,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
More information about the wxpython-users
mailing list