wpf - Differences between xaml DrawingBrush and original png file -


i have .ai type icon (illustrator) , extract xaml , png. place in viewbox. problem low quality of xaml type. result uploaded here. see, left image(png) sharp xaml output blurry. how can fix this?

enter image description here

best regards.

i tried these: snapstodevicepixels="true" uselayoutrounding="true" edgemode="aliased" problem still annoying. here xaml code:

<viewbox x:key="icnopenfolder" snapstodevicepixels="true" uselayoutrounding="true" width="16" height="16" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >     <rectangle width="16" height="16">         <rectangle.fill>             <drawingbrush>                 <drawingbrush.drawing>                     <drawinggroup>                         <drawinggroup.children>                             <geometrydrawing brush="#fff6f6f6" geometry="f1m14,3l9.397,3 6.416,0 1.597,0 3.584,2 3.5,2c1.57,2 0,3.57 0,5.5 0,6.258 0.247,6.985 0.712999999999999,7.604 0.798999999999999,7.716 0.904,7.804 1,7.904l1,9 0,9 0,10.196 2.323,16 14,16c14,16 14.86,15.979 15.43,15.435 15.773,15.103 16,14.617 16,14l16,5c16,3.697,14.995,3,14,3" />                             <geometrydrawing brush="#ffdcb679" geometry="f1m3,10l3,8.942c2.651,8.891,2.313,8.805,2,8.654l2,10 1,10 3,15 14,15 11,10z" />                             <geometrydrawing brush="#ffdcb679" geometry="f1m7.5791,5.8413l6.4141,7.0003 7.0001,7.0003z" />                             <geometrydrawing brush="#ffdcb679" geometry="f1m14,4l9.432,4 8.426,5 14,5 14,14.984c14,14.984,15,15,15,14l15,5c15,4,14,4,14,4" />                             <geometrydrawing brush="#ff00529c" geometry="f1m6,1l4,1 5.987,3 3.5,3c2.119,3 1,4.119 1,5.5 1,6.065 1.194,6.581 1.511,7 1.968,7.604 2.685,8 3.5,8l4,8 4,7 3.5,7c2.673,7 2,6.327 2,5.5 2,4.673 2.673,4 3.5,4l6.013,4 4,6 6,6 7,5 7.006,5 8.5,3.516z" />                             <geometrydrawing brush="#fff0eff1" geometry="f1m8.4258,5l7.5788,5.841 6.9998,7 6.4138,7 4.9998,7 4.9998,9 3.4998,9c3.3288,9,3.1658,8.966,2.9998,8.942l2.9998,10 10.9998,10 13.9998,15 13.9998,5z" />                         </drawinggroup.children>                     </drawinggroup>                 </drawingbrush.drawing>             </drawingbrush>         </rectangle.fill>     </rectangle> </viewbox> 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -