There are times when you might want to capture the screen for demonstration or tutorial purposes.  The easiest way is using the ddms application included in the Android SDK (http://developer.android.com/sdk/index.html).  This example is using Android SDK 2. Connect your phone with the computer Goto the folder where the Android SDK is, (and under tools folder) […]

The built in Image object in Java is very nice.  One thing you might not know already is that Java already support animated-gif.  There are times however, when things might not seem to work correctly.  For example: The gif only displays the first frame and never animates The gif only animates when the application/applet repaints. […]

BACKGROUND The Image object in Java is very nice.  It handles many details for you and it is sufficient for most programming tasks; however, there are times when you might want to be able to access the pixel data within an Image object.  For example: To change the transparent color key To swap a color […]

This is a very simple applet to illustrate scaling, zooming images in Java. Java has a built in function which takes an Image object and draws it on the screen. One of the function takes width and height as parameter. Using this function, you can easily zoom in and out images. Source <param name=”imageFileName” value=”image.name”> […]