![]() |
![]() |
![]() |
![]() |
CHAPTER 5 Bitmap Editor
This chapter will discuss the Bitmap Editor.
Using bitmaps within a Spotlet
A Bitmap is a simple black and white picture which can be displayed in the Palm OS Platform. Bitmaps can be any height, but must be a multiple of 16 pixels wide.
A Spotlet can draw bitmaps in several ways. One way is to use the kjava Graphics object to draw a bitmap directly on the screen of the Palm OS Platform Emulator. The following code fragment will draw a Bitmap, assuming that the integers "left" and "top" and the Bitmap "bitmap" have already been set up. (Simplicity defines g as a reference to the kjava Graphics object in every Spotlet.)
However, most users will want to use a Bitmap in a different way: as the picture for a button. When a button is created, it can be given a Bitmap which it will draw instead of a label. A third way of using a Bitmap is as an icon for the application on the Palm OS Platform.
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |