How to use bitmap.
hi all,
how to add the bitmap. give some basic code to understand. thanks |
Hi crazystar,
Add the following code in your MainScreen class. Code:
Bitmap HELLO_LOGO = Bitmap.getBitmapResource("hello.gif"); Cheers, ARIF |
thanks Arif,
|
thanks Arif, In your example gif images is loaded but if we use gif moving pictures it is not working. it is added but that motion is not in the pictures.help me
|
Welcome crazystar!
actually i didn't check it before. hope, i'll get back to you very soon with your interest. Thanks, ARIF |
thanks Arif,After u try that bitmap using gif image tell me ....
|
this won't be possible - the blackberry doesn't support animated gifs. the jde converts any gifs in a project to png when you compile. if you want to use an animated gif you should save the seperate layers, the simplest way to achieve the same effect is to update the bitmap displayed in a bitmap field using a timer and timertask
|
Ya, I've the same experience!
The BlackBerry devices support graphics in PNG format. Images in GIF or JPG (JPEG) format can also be added to application projects in the BlackBerry JDE. The BlackBerry JDE converts GIF or JPG images into PNG format automatically when it compiles a project. If an application accesses raw image data on the device, it retrieves PNG image data. Quote:
Thanks, ARIF |
not tested it but something like this should work:
Code:
Bitmap image000 = Bitmap.getBitmapResource("image000.png"); |
Thanks jfisher!
All time we need to save seperate layer for animated gif. :shock: ARIF |
Hi,
Only through replacing Images (ie) moving different frames of Images only we can provide animation . |
Does the BlackBerry JDE 4.2.0 have API for getting the layers of the animated gif image? What is it?
|
the JDE is not intended to manipulate gif-images. try a google with 'gif animation extract' or something along this line.
hth, simon |
I am trying to resolve this problem using EncodedImage and its child GIFEncodedImage classes from the standard RIM library. How do you think about that?
|
Quote:
Quote:
|
Animated Gif Problem !
I have a class like this that pushes to the stack a new screen that is a picture (jpeg, gif or something). In the case i have an animated gif I have a problem with displaying the frames of the gif. Here is my class:
Code:
public class FullScreenBanner extends MainScreen { |
Hi ! Is there anybody make an animated gif image suport ? I just don't know how to display the frames! :oops:
|
HELP ME!
I want play a gif animate into my midlet for Blackberry. Exist an method to it? An example? Thanks to yours help! |
Quote:
|
If you want to create an animation in the same way as a gif, create a tiled image using the frames in your animation as the tiles. Then use the Sprite class to animate it.
|
All times are GMT -5. The time now is 04:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.