new wallpaper stuff committed - all phone profiles need to be updated
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <001901c51e3b$e93ba0b0$04000100@rogersqyvr14d3> |
I have committed the new wallpaper code. When adding new image files you can select what origin to use, crop the image and choose whatever area you want while maintaining aspect ration. You can also choose the target for your image. An origin is a distinct storage area on the phone. For example some phones only have one, while others can have several. Some you may read and write from while others may only be read (eg camera). A target is what the user intends to do with the image. Each target can have different dimensions and format. For example the dimensions of an image intended for fullscreen startup will be larger than those used as wallpaper as the latter leaves space for menu bars and status lines. You will need to add two methods to your profile. One is GetImageOrigins() which returns the origins you can write to on the phone. The second is GetTargetsForImageOrigin() which returns the targets for the specified origin. There is code and comments in com_phone and an example usage in com_lgvx6000.py. At some point I will soliciting image dimensions and format information on bitpim-user. This will give those users who care about image sizes to tell us exactly what the correct sizes for various targets are. There are still some rough areas in all this to work through, but we now have a good start. Roger ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click