On Fri, 18 Aug 2006 04:36:02 GMT "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> babbled:
> > > beware. this is relatively inefficient for icons. the resulting > > evas images are generally big (1000x1000 or bigger). i need to: > > > Ha! They're hard to miss that way :) > > Rendering them at any given pixel size is fairly easy: > if their default size is w0xh0 say, and you want them at w1xh1, > then allocate your suface at w1xh1 size, and before the call to > the rsvg-render function, add the cairo call > cairo_scale(cr, w1 / (double)w0, h1 / (double)h0); > or > cairo_scale(cr, w1 / dim.em, h1 / dim.ex); > > Actually, just for testing purposes, as things stand, > see if adding the call > cairo_scale(cr, dim.width / dim.em, dim.height / dim.ex); > does anything differently than what it does now (it shouldn't, > but...). > > > 1. add api to evas itself to provide size "hints" to loaders > > (load at size XxY at maximum and retain aspect) as well as dpi > > hints (you will want both eventually). > > 2. add api to loaders to be able to do this. > > 3. actually use this api in the svg loader > > 4. for shits & giggles try it in the jpeg loader too :) all of this done :) works. rsvg/cairo do have bugs with inkscape svg's that use clipping - they don't transform the clipped objects. :( so it only works at 90dpi (no scaling by rsvg/cairo) for those files i have. anyway - rscg/cairo bug :) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel