
|
October 2004 |
|
The Camera Snapshot API is supported by all Sony Ericsson non-Symbian OS MIDP 2.0 phones from the Z1010 onwards. The API extends the possibilities for Java developers by allowing a user to configure the application's look or game-play view. If the user takes a snapshot with the camera, the image can then, for example, serve as the avatar in a 2D game, or as the wall texture in a 3D dungeon game. Download the example MIDlet with source code, and see how the camera snapshot is applied as texture on a rotating cube. The example MIDlet also shows you how to use six different textures, one for each face on the cube. Note that in the example MIDlet, the same image is used for each side on the cube. When using the snapshot from the camera as a texture, don't forget that the final texture image size must be a non-negative power of two (2, 4, 8, 16, 32, 64, 128, 256). For example, an image with dimensions of 128 W x 64 H pixels is a valid image size. | |
|
| |
Copyright © 2001 - 2009 Sony Ericsson Mobile Communications AB. All Rights Reserved.