| Reply | « Previous Thread | Next Thread » |
|
Hi guys!
I have to display an image on a canvas. So far not that difficult. Now my problem is: how to display a .png on a canvas with transparency?? That might not be possible since the image is loaded as a bitmap. Better, I'd like to put some icons from "avkon.mbm" on the canvas where I could have the transparency for the icons. But no can do since it's an Icon object and not an Image object... So if someone knows something please share it, that would save me a headache ![]() LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
Quote:
![]() It's not difficult. We have already discussed of this subject Look at this discuss for displaying icons from mbm with transparency with automask function and easy conversion between Icon and Image !Quote:
For 3rd Edition phones it's not possible to use avkon.mbm because of new scallable UI (avkon.mbm is absent from phone now !) You must use SVG-T format (vector graphic) ... I hope that I have been as fast as possible to save you an headache Regards 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/ |
|
Great Cyke!
Thanks a lot, displaying icons on the canvas works. But I still have that problem that I'm displaying them on a blue background. I don't see how I could get the transparency on a canvas. I'm scared I'll have to extract every icons I need and color the white parts with the color I need... LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
|
The blit method has an optional argument "mask" that can be used to select which parts are blitted.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Opening a JPEG Image | ummarbhutta | Mobile Java Media (Graphics & Sounds) | 8 | 2007-02-15 07:34 |
| DirectUtils.createImage Transparency problem | pippopippi | Mobile Java Tools & SDKs | 2 | 2003-03-22 01:18 |
| Sprites management remarks | atomictag | Mobile Java General | 0 | 1970-01-01 02:00 |