Posted by: flyingdogz on: February 11, 2008
I’ve combine the source I provided in the first article , which receive and return BufferedImage object , with the Image to a BufferedImage code that I’ve found from http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html.
The result is the Class ImageUtils with the rotateImage() method that receive 2 parameters , img – an Image object to rotate and degree – [...]
Posted by: flyingdogz on: February 10, 2008
Author : John O’Conner,
Source : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
Conclude by : ME
More info : http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
–
Desktop Overview
This new functionality is provided by the java.awt.Desktop class. The API is adopted from the JDesktop Integration Components (JDIC) project. The goal of that project is to make “Java technology-based applications first-class citizens” of the desktop, enabling seamless integration. Specifically, the new [...]
Posted by: flyingdogz on: February 9, 2008
Source : http://forum.java.sun.com/thread.jspa?threadID=487900&messageID=2286191
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.imageio.*;
import javax.swing.*;
public class Tilt {
public static void main(String[] args) throws IOException {
URL url = new URL(“http://weblogs.java.net/jag/Image1-large.jpeg”);
final BufferedImage image = ImageIO.read(url);
[...]