| Reply | « Previous Thread | Next Thread » |
|
hi,
I wrote my first app and it's working fine on my phone ![]() but there is one problem: in my ap are lots of graphics in *.png format....( app is ~ 2 MB )I used topwindow to show thom on my screen... now i want to convert *.png to *.svg with same effect. is that possible: Code:
pic=graphics.Image.open("C:\\newpicture.svg")
canvas.blit(pic)
e32.ao_sleep(5)
show newpicture.svg for 5 seconds and then switch back to backround image of my app... (I hope you understand it..., sry for my english) |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
|
Have you tried it? It's always a good idea to try something before asking questions
![]() The supported formats are jpg, png and gif. sgv images are used for icons, not for being displayed on a canvas. |
|
Quote:
so exact resolution could be difficult.Look at this thread for converting tools. BR Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Hi,
I've written a SVG-File. Should look like a ball with 3D effect. Works fine on the PC, but the S60 (because of SVG tiny?) ignores the cx cy option of radialGradient: Code:
<radialGradient id="verlauf" cx ="25%" cy ="25%" r ="85%">
<stop offset="0%" stop-color="white" />
<stop offset="75%" stop-color="yellow" />
<stop offset="100%" stop-color="grey" />
</radialGradient>
![]() is there a any trick to get same effect ? |
|
Hi andipro,
would you share your piece of code that shows how you display the svg in your python script? We could use "on the fly generated" *.svg images e.g. to display database generated map tiles. Thx novis |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
Well, I think the SVG-Tiny won't get all the data that standard SVG gets. So, in your case it could have excluded some options. I recommend you to draw your SVG instead of writing codes. You can do that in programs such as Inkscape(Basic) or Adobe Illustrator(Professional). If you use Illustrator it will do all the necessary changes when you save the file as SVG-Tiny ![]() BR, Rafael. |
|
Hi,
and thanks for help. @novis I did not write a python code to display a svg file. I write a svg file (xml) for use it as icon for my python app @Rafael T. I've tried Inkscape and svg2svgt (a nice package). But the result is the same. svg2svgt is not able to build a correct working code (means not error but not the wished outfit) Now I did a compromise. I used linearGradient instead of radialGradient and rotated the circle 45° - so it is a similar effect |
|
Quote:
Quote:
Quote:
Quote:
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| an application that work in emulator and does't work an nokiaE61 | kristun | General Symbian C++ | 2 | 2008-02-22 12:49 |
| 伊莱比特无线技术(北京)有限公司招聘 | EB | Business/Marketing & Non-Programming -商机/市场及应用开发的一般话题和工作机会 | 0 | 2007-10-21 10:01 |
| can this waitforrequest method work? | isarc | General Symbian C++ | 3 | 2007-06-21 10:53 |
| HttpConnection Connect.Open() wont work | Tiger79 | Mobile Java General | 11 | 2007-06-14 12:31 |
| CommConnection does not work with Series 60 SDK, but works in JWT | jackiechan2001 | Mobile Java Tools & SDKs | 1 | 2004-02-04 10:07 |