View Single Post
Old 05-21-2007, 04:28 AM   #4 (permalink)
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

aah i see. instead of drawing straight to the bitmapfield draw to a bitmap and then populate the bitmap field for display:

Bitmap myBitmap = new Bitmap(240, 100);
BitmapField myBitmapField = new BitmapField(myBitmap, BitmapField.FOCUSABLE);
Graphics myGraphics = new Graphics(myBitmap);

myGraphics.setColor(0xFF0000);
myGraphics.fillRect(10, 20, 10, 10);
myGraphics.drawText("myText", 20, 5);

myBitmapField.setBitmap(myBitmap);
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline