Home » desktop java » Page 2

Tag Archives: desktop java

Converting a Colored Buffered Image to Grayscale

With this tutorial we are going to see all that is necessary in order to load a colored image from a source and convert it to grayscale. Basically, to convert a Colored Buffered Image to grayscale one should take the following steps: Load an image from a URL using Toolkit.getDefaultToolkit().getImage method Use an ImageObserver to monitor the loading of the image. When the image ...

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 »

Blurring a Buffered Image

In this tutorial we are going to see how can you load an image from a source  and blur it. This is one of the most basic graphics effects that you are going to use when you begin with image processing. In short, to blur a Buffered Image you simply have to take the following steps: Load an image from ...

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 »

Get and set pixels on a Buffered Image

In this tutorial we are going to show you how to set and get the RGB value of each pixel of a Buffered Image. This is particularly useful when you want to perform several operation on images based on the RGB values of each individual image. Or if you want your UI to interact in some way according to the values of the ...

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 »

Create Java BufferedImage from an Image

In this tutorial, we are going to show you how to create a BufferedImage in Java from a source Image. This is a basic operation if you want to perform several enhancements and transformations to your buffered image in java and this is fundamental for image processing. 1. Introduction Buffered image in java class extends the Image class. There are 3 ...

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 »

Determine if an image has transparent pixels

In this tutorial we shall show you how to check if an Image has transparent pixels. This example shows the basic techniques in order to gain very detailed information about your images. In short,  to determine if an image has transparent  pixels, one has to take the following steps: Load an image using ImageIcon and getImage method If the Image is a BufferedImage the color model is ...

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 »