View Single Post
Old 09-06-2007, 11:37 PM   #6
Rose
Thumbs Must Hurt
 
Rose's Avatar
 
Join Date: Nov 2006
Location: India
Model: 9700
OS: Windows 7
Carrier: Airtel
Posts: 121
Default

Quote:
Originally Posted by simon.hain View Post
first of all, thank you for your patience.
my problem with using your example code is that i can't provide my bitmap as a resource. I read it from an external source, like
Bitmap bmp = getBitmap();

now i get the error:
cannot find symbol
symbol : method getEncodedImageResource(net.rim.device.api.system. Bitmap)

is there a way i can provide my new bitmap as a named resource?
Can you describe clearly what you mean as external resource..From where you are reading the bitmap and how ?

If it is a file you will be reading as byte[]. So you can create a Encoded Image from that byte array and bitmap from that Encoded Image.

What actually the function getBitmap() do ?
Offline   Reply With Quote