Home » Author Archives: Ilias Tsagklis (page 5)

Author Archives: Ilias Tsagklis

Ilias Tsagklis
Ilias is a software developer turned online entrepreneur. He is co-founder and Executive Editor at Java Code Geeks.

Location Based Services Application

With this example we are going to create a location based services application for Android. Location Based Services are quite popular on mobiles nowadays. To create a location based services application one should perform the following steps: Create an Android Activity (here called LbsGeocodingActivity) Get reference of the LocationManager system service Use the requestLocationUpdates method of LocationManager Implement the LocationListener ...

Read More »

Handling Mouse Clicks

In this short tutorial we are going to see how to monitor a very basic GUI event in Java Desktop Applications, which is mouse clicks. What we want to see is what button mouse the user pressed (left, middle or right click) and then we want to know the exact location, in coordinates, in our Frame that this event occurred. ...

Read More »

Sharpening a Buffered Image

In this example we are going to see how can you load an image from a source (a URL for instance) and make it look sharper in your own screen and according to the graphics environment that it is displayed into. Basically, to sharpen a Buffered Image one should take the following steps: Load an image from a URL using ...

Read More »

Embossing a Buffered Image

In this tutorial we are going to see how can you load an image from a source  and emboss it according to your needs Basically, to emboss a Buffered Image one should take the following steps: Load an image from a URL usingToolkit.getDefaultToolkit().getImage method Use an ImageObserver to monitor the loading of the image. When the image is fully load the user will ...

Read More »

Brightening or Darkening an RGB Buffered Image

In this tutorial we are going to see all that is necessary in order to brighten or darken an RGB Buffered Image from a source. This is one of the most basic image processing techniques that you will use when developing applications that involve images. Basically, to brighten or darken a buffered image one should take the following steps: Load an ...

Read More »

Scaling Shearing Translating and Rotating a Buffered Image

With this example we shall show you four fundamental graphical transformations that you should know when you try to construct you own custom graphical environment or develop simple graphics. In short in order to perform Scaling, Shearing, Translation and Rotation to a Buffered Image one should take the following steps: Load an image from a source using Toolkit.getDefaultToolkit().getImage method Use an ImageObserver ...

Read More »

Drawing on a Buffered Image

In this tutorial we are going to show you how to Draw on a Buffered Image. This is quite useful when you want to further customize the graphics of your application, if you are not pleased with the original Image. In short in order to Draw on a Buffered Image one should take the following steps: Load an image from a ...

Read More »

Swapping the RGB Values of an Image

With this tutorial we shall show you how to swap RGB values in an Image. This is very useful when you are trying to create some effects to your Application. Basically all you have to do in order to swapp RGD values of an Image is: Load an image using ImageIcon and getImage method Create a class that extends RGBImageFilter and ...

Read More »

Scaling Shearing Translating Rotating a Shape

With this example will shall show you four fundamental graphical transformations that you should know when you try to construct you own custom graphical environment or develop simple graphics. In short in order to perform Scaling, Shearing, Translation and Rotation to a simple shape, one should take the following steps: Use RoundRectangle2D to construct a simple rectangle shape Use AffineTransform class and its ...

Read More »

Combining shapes example

In this tutorial we shall show you how to create a simple graphic by combining basic shapes. We are going to use some the built in classes that Java offers. Basically to create and combine shapes in Java: Use Line2D, Ellipse2D, Rectangle2D, RoundRectangle2D, Arc2D, Area to create some simple shapes Use add, subtract, intersect, exclusiveOr methods of the Area class ...

Read More »