From memory the new text rendering engine makes use of the OS level to help render that out visually (i think it actually uses clear type or a subset of it anyway). When you do a process path approach, you're not using the text renderer at all and are essentially generating a vector shape that happens to look like TEXT (ie much the same way as a circle etc).
From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Vishwanath Humpy Sent: Tuesday, March 09, 2010 4:30 PM To: ozsilverlight@ozsilverlight.com Subject: Re: RE: xaml icons Lots of great advice. I don't think I will contemplate doing icons as xaml any longer for the variety of reasons mentioned. I am curious though. When it comes to the performance issue, what is the difference between the rest of my xaml UI and the icons? Is it the case that drawing and scaling (if required) say : <Canvas Height="100" Width="100"> <Path Fill="{StaticResource SomeLinearGradientBrush}".......> ......... </Path> </Canvas> is a lot more cpu expensive than : <Grid Background="StaticResource SomeLinearGradientBrush" Height="100" Width="100"> </Grid> Does it consume a lot of cpu plotting and scaling all the points on the path? Which is not the case for buttons, grids, textblocks....? Is the text rendering engine a lot more efficient generating the display than processing a path? On Tue, 09 Mar 2010 11:33:47 +0530 wrote > Having Icons in pure vector 100% of the time is an awful wasteof CPU ☺ nomatter how big/small they are in density. You should consider using cachingthem as bitmap at runtime per state you keep them firstly failing that convertthem to pure bitmap (PNG/JPG) could also work as well, if you can get away withjust JPG that is also a lot smoother and more perf gain, given there's no Alphato deal with by Silverlight. As for XAML ICON designers, any designer you can get a hold ofwho specialise in Icon design (desktop illustrators etc) are fine. Converting.AI/.EPS files to XAML is an easy task given ex-pression Blend has importcapabilities for this kind of thing aswell. If you can't get one to convertping me as i'd be curious to see why. From: ozsilverlight-boun...@ozsilverlight.com[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of JohnOBrien >Sent: Tuesday, March 09, 2010 3:24 PM >To: 'ozSilverlight' >Subject: RE: xaml icons We ran into trouble with animated xaml icons, we were usinghundreds of these on a map and it did consume some CPU. We switched to Jose’ssprite method using a series of frames as a single png image with greatresults. If anyone is interested I made it into a reusable control: http://deepearth.codeplex.com/sourcecontrol/network/Show?projectName=deepearth&changeSetId=37658#584181<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fdeepearth%2Ecodeplex%2Ecom%2Fsourcecontrol%2Fnetwork%2FShow%3FprojectName%3Ddeepearth%26amp%3BchangeSetId%3D37658%23584181&isImage=0&BlockImage=0> (I really should start blogging all this stuff...) John. From: ozsilverlight-boun...@ozsilverlight.com[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of MiguelMadero >Sent: Tuesday, 9 March 2010 12:54 PM >To: ozSilverlight >Subject: Re: xaml icons When using complex vector graphics, Ithinkyou should consider not only the size, but also the CPU impact itmight have. I would hope that for small icons this won't be an issue. I don'thave experience in this area, but it's something I would try to test/googlebefore going with that approach. > On Tue, Mar 9, 2010 at 12:25 PM, JohnOBrien <j...@soulsolutions.com.au</prism/writemail?mode=mail_to_individual&email=j...@soulsolutions.com.au&output=web&els=2e176912d075299f49c2b4025e4c86f6>>wrote: Icons are really timeconsuming for a graphic designer, I like this site: http://www.iconfinder.net<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fwww%2Eiconfinder%2Enet%2F&isImage=0&BlockImage=0>as it has good quality free icons with a filter to show the ones allowed forcommercial use. Even an API in there ☺ I started out thinkingeverything in Silverlight should be vector based XAML so it can scale to anysize but found it way too difficult to create, I’m back to just using nice PNGimages. That said if you get a kit of icons in a vector format then ex-pressiondesign should be able to convert them to XAML, when comparing filesizesremember that the xaml will be zipped. I do recommend comparing what thefilesize will be in xaml vs PNG and whether you need them to scale beyond128x128px or 64x64px size. John. From: ozsilverlight-boun...@ozsilverlight.com</prism/writemail?mode=mail_to_individual&email=ozsilverlight-boun...@ozsilverlight.com&output=web&els=2e176912d075299f49c2b4025e4c86f6>[mailto:ozsilverlight-boun...@ozsilverlight.com</prism/writemail?mode=mail_to_individual&email=ozsilverlight-boun...@ozsilverlight.com&output=web&els=2e176912d075299f49c2b4025e4c86f6>]On Behalf Of Vishwanath Humpy >Sent: Tuesday, 9 March 2010 10:56 AM >To: >ozsilverlight@ozsilverlight.com</prism/writemail?mode=mail_to_individual&email=ozsilverli...@ozsilverlight.com&output=web&els=2e176912d075299f49c2b4025e4c86f6> >Subject: xaml icons Does anyone know of any good free or paid resource for xamlicons? I can do them myself but I'm a bit slow and don't have a graphicsdesigner by my side. > >I know there are plenty of converters, as well documented here, but you do >needsomething to convert : > >http://blogs.msdn.com/mswanson/pages/WPFToolsAndControls.aspx<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fblogs%2Emsdn%2Ecom%2Fmswanson%2Fpages%2FWPFToolsAndControls%2Easpx&isImage=0&BlockImage=0> > >I also had hopes for this visio -> xaml but it doesn't work on my machine : >http://visioautomation.codeplex.com<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fvisioautomation%2Ecodeplex%2Ecom%2F&isImage=0&BlockImage=0> > >Or I am on the wrong track, perhaps icons are best left as pngs and I >shouldjust invest in an icon library such as >http://www.iconshock.com/<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fwww%2Eiconshock%2Ecom%2F&isImage=0&BlockImage=0> > and forget about it ? [/bn/download.cgi/image001.jpg?login=vhumpy&session_id=6L25PK1KUKVzUz37P9CXCiGN4BUw7oLV&file_name=1268114627.S.26187.7848.f6mail-145-186.rediffmail.com.old&formname=download&filetype=image/jpeg&folder=Inbox]<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fsigads%2Erediff%2Ecom%2FRealMedia%2Fads%2Fclick%5Fnx%2Eads%2Fwww%2Erediffmail%2Ecom%2Fsignatureline%2Ehtm%40Middle%3F&isImage=0&BlockImage=0> >_______________________________________________ >ozsilverlight mailing list >ozsilverlight@ozsilverlight.com</prism/writemail?mode=mail_to_individual&email=ozsilverli...@ozsilverlight.com&output=web&els=2e176912d075299f49c2b4025e4c86f6> >http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fprdlxvm0001%2Ecodify%2Enet%2Fmailman%2Flistinfo%2Fozsilverlight&isImage=0&BlockImage=0> > >-- >Miguel A. Madero Reyes >www.miguelmadero.com<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fwww%2Emiguelmadero%2Ecom&isImage=0&BlockImage=0> > (blog) >m...@miguelmadero.com</prism/writemail?mode=mail_to_individual&email...@miguelmadero.com&output=web&els=2e176912d075299f49c2b4025e4c86f6> _______________________________________________ >ozsilverlight mailing list >ozsilverlight@ozsilverlight.com</prism/writemail?&mode=mail_to_individual&email=ozsilverli...@ozsilverlight.com&output=web&els=2e176912d075299f49c2b4025e4c86f6> >http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight<http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fprdlxvm0001%2Ecodify%2Enet%2Fmailman%2Flistinfo%2Fozsilverlight> > [http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline....@middle]<http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline....@middle?>
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight