Roger Binns
2005-03-01 08:51:51 UTC
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
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