Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 329
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: developer

Re: png to bitmap error

123.png

Regular Contributor
Posts: 80
Registered: ‎10-20-2010
My Device: 8707

Re: png to bitmap error

[ Edited ]

I think i know the problem with the images, they have been mutated. The thing now is that all i need is just open the images and there is no need to convert to bitmap.

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: png to bitmap error

That's good that you might know the issue.

 

@satish4ru: The reason I say to do an attachment is an attachment is instant, uploading a photo requires mod approval.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Regular Contributor
Posts: 80
Registered: ‎10-20-2010
My Device: 8707

Re: png to bitmap error

You were saying in the other post that I can get a image by getting a Graphics object for it, then draw the EncodedImage to it. Which graphics library on blackberry can I use for opening a still image?

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: png to bitmap error

For opening a still image? I thought you said you used EncodedImage?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Regular Contributor
Posts: 80
Registered: ‎10-20-2010
My Device: 8707

Re: png to bitmap error

I have tried using EncodedImage but some images doesn't work. Do you know how to open a still image? Thanks!

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: png to bitmap error

Unfortunetly the options I know of is EncodedImage, Bitmap, Image (MIDP), writing your own image decoder, or modifying your image.

 

If you can't open with EncodedImage, Bitmap, or Image then your only options are write a image decoder or modify the image.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.