Blackberry JAVA DEVELOPMENT ENVIRONMENT - - GPS AND MAPS - DEVELOPMENT GUIDE Manuale Utente Pagina 16

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 33
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 15
Image creation
You can add an image to your application from a bitmap or an encoded image by using the Image API that is provided in the
net.rim.device.api.ui.image package. For example, you can use an Image as an icon in a menu item.
For more information about the Image API, see the API reference for the BlackBerry® Java® Development Environment.
Image scrolling
You can display a row of images on a BlackBerry® device screen that a user can scroll through, by using the
PictureScrollField class that is provided in the net.rim.device.api.ui.extension.component package.
Users can scroll through the images by rolling the trackball, pressing shortcut keys, or, on BlackBerry devices with a touch screen,
sliding a finger across the screen. For example, you can create a field that displays a row of images, and for each image you can
provide a caption and tooltip that appears when the user scrolls through the images.
To download a sample application that demonstrates how to use the PictureScrollField class, visit www.blackberry.com/
go/picturescrollfieldsample. For more information about the PictureScrollField class, see the BlackBerry Java
Application Multimedia Development Guide and the API reference for the BlackBerry® Java® Development Environment.
Image zooming and panning
You can enable users to zoom into and pan an image by using the ZoomScreen class that is provided in the
net.rim.device.api.ui.extension.container package. For example, when a user clicks the trackball, trackpad,
or touch screen, the BlackBerry® device zooms into the center of the image. To pan the image, the user can zoom into the image,
and then roll the trackball or slide a finger on the trackpad or across the screen. To zoom out, the user can press the Escape key.
To download a sample application that demonstrates how to use image zooming and panning, visit www.blackberry.com/go/
zoomscreensample. For more information about image zooming and panning, see the BlackBerry Java Application Multimedia
Development Guide and the API reference for the BlackBerry® Java® Development Environment.
Feature and Technical Overview
Multimedia
14
Vedere la pagina 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 32 33

Commenti su questo manuale

Nessun commento