Showing posts with label Image processing. Show all posts
Showing posts with label Image processing. Show all posts
Monday, January 27, 2014
Tuesday, October 29, 2013
Java program to take screen shots of your desktop
This example is used to take screen shots of your desktop and save the file in specific format in your machine. This example uses java.awt.Robot class to capture the screen pixels and returns a BufferedImage. Java.awt.Robot class is used to take the control of mouse and keyboard, see API for more options. Once you get the control, you can do any type of operation related to mouse and keyboard through your java code.
Please see the self explanatory java code below. This example takes screen shot of your desktop after an interval of every 5 second, you can customize it as per your requirement.
Please see the self explanatory java code below. This example takes screen shot of your desktop after an interval of every 5 second, you can customize it as per your requirement.
Tuesday, November 6, 2012
Simple Java program to Watermark an Image
A watermarking is a technique that allows an individual to add copyright notices or other verification messages to digital audio, video, or image signals and documents. It may be visible, hidden, or a combination of both. Lets see how it can be achieved using a simple Java program. Below is the simple code however you can customize it according to your requirement.
Please see the self explanatory Java program below.
Please see the self explanatory Java program below.
Labels:
API,
Image processing
Saturday, September 8, 2012
How to create a Jigsaw puzzle using JSP and Javasacript?
What is Jigsaw puzzle?
A Jigsaw puzzle is a tiling puzzle that requires the assembly of numerous small pieces. Each piece usually has a small part of a picture on it; when complete, a jigsaw puzzle produces a complete picture.
In this article we will see how to create a Jigsaw puzzle using javascript. Initially you will require to cut an image into various pieces, that can be done using a simple java program.
Please see the below Java program that will cut an image into number of pieces for a Jigsaw puzzle. Just provide the desire number of rows and column, it will automatically cut an image into that number of pieces.
Please see the self explanatory Java program below
Labels:
API,
Game,
HTML,
Image processing,
Javascript,
JSP,
Simple Java Codes
Sunday, September 2, 2012
Java / JSP : Simple image cropping example
In this article we will see how to crop an image in Java. You are in this page then u might surely know what exactly the Image cropping is, it is nothing but removal of the outer parts of an image to improve framing, to change aspect ratio etc.
Image cropping can be implemented easily using Java. First lets see the basic example of image cropping. In the below code we have used getSubimage() function of BufferedImage to achive image cropping feature. No need to add any Jar file directly you can run below code and see the output.
Please see the self explanatory java code below.
Labels:
HTML,
Image processing,
Javascript,
JQuery,
JSP,
Simple Java Codes
Wednesday, August 22, 2012
Java - Image resizing
In this article we will see how to resize a given image to our desire size using Java program. It may be required to resize a large image to 100x100 icon or any other size. It also helps to compress the memory of an image. Image resizing can be required for may reasons - Lets say we want to loan an image in mobile browser, it is not adviceable to load the large image as it is because it may hit page loading time and ofcourse it will create bad experience to end user.
About the example : This is a simple Java program which will resize an image to any other desire size. we have a function resizer() which accepts 4 parameter - Original file, width, height and desire extension. Directly you can run the program and see the out put no need to add any JAR files.
Please see the self explantory program below.
About the example : This is a simple Java program which will resize an image to any other desire size. we have a function resizer() which accepts 4 parameter - Original file, width, height and desire extension. Directly you can run the program and see the out put no need to add any JAR files.
Please see the self explantory program below.
Subscribe to:
Posts (Atom)