My Links
Post Categories
Archives
- May, 2008 (1)
- March, 2008 (3)
- February, 2008 (2)
- January, 2008 (1)
- November, 2007 (2)
- October, 2007 (3)
- August, 2007 (1)
- July, 2007 (10)
- June, 2007 (3)
- May, 2007 (7)
- April, 2007 (1)
- February, 2007 (1)
- January, 2007 (6)
- December, 2006 (2)
- November, 2006 (1)
- August, 2006 (1)
- July, 2006 (1)
- February, 2006 (1)
- January, 2006 (6)
- November, 2005 (1)
- October, 2005 (1)
- September, 2005 (1)
- August, 2005 (2)
- July, 2005 (2)
- May, 2005 (1)
- March, 2005 (7)
- February, 2005 (4)
- January, 2005 (2)
- December, 2004 (1)
- November, 2004 (1)
- October, 2004 (3)
- September, 2004 (2)
- August, 2004 (6)
- July, 2004 (2)
- June, 2004 (2)
- May, 2004 (4)
- April, 2004 (2)
- March, 2004 (3)
- November, 2003 (8)
- October, 2003 (13)
|
Normally I try to avoid 'me too' posts, but for this... John Dowdell mentioned today that the swf 7 docs are ready and posted. Record time I might add - totally great to hear and see!
posted on Tuesday, November 18, 2003 9:50 PM
Feedback
-
Posted @ 12/3/2003 2:05 AM
This comment is somewhat offtopic, but not entirely!
I'm doing some work with GDI+ and SWF files and I've run into issues with LinearGradientBrush. Particularly the need to always tile (no clamp wrap mode)! Which is a fairly mind-boggling design decision on Microsoft's part. I'm asking about this here because I read a post on google groups that suggests that Robin had a similar issue and I was wondering if he discovered an elegant workaround since then?
If so, I'd love to hear about it.
-
Posted @ 3/6/2004 1:30 PM
Elegant? No!
For the radial brush it is easy - you just fill the bkg with the clamp color. For linear gradients it is annoying, as you know I'm sure, because there are two ends. So what I did was calc the center and the angle (based on shape size), and then fill the clamp colors first, splitting at the middle of the gradient. Then for the second fill (overtop) I just did the regular gradient with any transparent ends it might have. Iirc, I also calcualted if there was indeed going to be a clamp color visible, and if so on which side. That way there wasn't always three fills, only one (common case), two, or three as needed.
That ASDraw program (richmediabuilder.com/asdraw) has the results if you want to check if it works for your graphics (the top left graphic is gdi+, right side SVG).
I was pretty surprised too that there weren't edge clamp colors in gdi+!
|
|
Blog Stats
- Posts - 121
- Stories - 1
- Comments - 1441
- Trackbacks - 47
.Net Blogs
01101 Blogs
Flash Blogs
Graphics
People
|
|