I want to have a cartoonish stork fly across my screen (slowly flapping his wings) and land on a post. I have an artist that can draw it for me and said it could be a gif file. I'm guessing that means it would be like a cartoon movie. Is this easy to put in my app or do I need to do something entirely different? My only experience with any graphics in android is displaying a picture using ImageView.
Thanks for any help.
Android does not deal with animated GIFs well. You apparently can play one back using VideoView, but I have not tried that. You can also set up an AnimationDrawable resource (an XML container for the frames of your animation).
This seems to do what you want:
http://www.androlib.com/android.application.com-ideal-imageviewer-EzCz.aspx
Related
I need the code to add invisible watermark to another image in Android
As the comments mentioned, Stackoverflow isn't a free coding service. I will provide you with a high level design advice from which you can implement your own code.
Invisible watermark could just be metadata. The point is to make your particular photo unique and identifiable, right? I would recommend you looking into image metadata manipulation for a simple solution.
That being said, if you are looking for some high tech stealthy watermarking, then you might be looking for pixel manipulation. You can change a few of the pixel colors so if it's compared with the original image with the naked eye, it looks identical but if compared with their base64 encoding you can see a difference. Simply create your own pattern as some sort of signature to attach to images to identify them.
Both method allows you to determine if an image is yours due to the "watermark" you leave on it.
I'm developing a game with andengine.And I wanna use only one image for whole game.
For example now I'm using 10 image spreadly.(e.g player, buttons, background, etc.).But when I do like that, the game is starting too slow.And I wanna combine them as one image like this:
http://atariage.com/forums/uploads/monthly_11_2011/post-26314-0-86776700-1321332409.png
I guess you're looking for TexturePacker. You can find an interesting tutorial in the link below.-
http://www.matim-dev.com/texture-packer.html
Wanted to ask what's the best way to play a full-screen animation on android, say a few hundred frames?
I think it too short for putting it into a movie and messing with videoview. So I guess maybe just rendering each frame as a separate PNG file and having an imageView change its picture by a timer, what do you think?
Thanks!
I think you can use 30 frames/second will be efficient and very useful to you
I have an image that is circular and I want to make the other junk in the image to be transparent. I've spent the last hour looking around and I can't seem to figure out how this is done for android. Any help is greatly appreciated!
I haven't worked with Android but on iOS pngs weren't loading for me when I made them in photoshop but when I made them in flash all of a sudden they would work! Try that first :)
Anyways, you want to google something along the line of "pixel arrays android code" you can create an array of each pixel, find an individual color, then make it transparent...
But I really think this is just a GIMP issue and you don't need to go through all of that hassle.
what i can understand from your uncleared words is that you want to display transparent image of a normal image you have . so i would suggest don't do it through programming . create a transparent image through any image editor tool and use it .
if image is dynamic that you cant go in this way so use Matrix and setAlpha . search over net for both the terms
i want my gallery application to be modified , like coverflow. but not exactly like coverflow. the images in the gallery view should be viewed in such a way that it should look like reverse letter "U" . i want to change the angle image in such a way that it has to go slightly go above the previous image so that i can achieve the reverse "U" for gallery view.
There are already widgets out there that you can consider using. I found one http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html that looks very good, but it might not be exactly what you are looking for.
Here is another one based on the interfuser widget. http://code.google.com/p/android-coverflow/.
They claim to have improved the performance of it.
Whether you can use them as is or not, you can probably use the source as inspiration.
You can use preRotate or postRotate methods in android.graphics.Matrix. Check them once.