Because I am constantly busy working on something, I have never had time to actually put everything in words and pictures. But, since you got here, then you must have already seen some part of my work - and this is the way I’m talking.I'm 23, born in Romania, student at UPG Romania in software development field. I started from 0, mostly with basic stuff, and I’m evolving every day to an expert. I'm focused on freelancing projects, from small websites, to really heavy stuff. I know that I look and act differently from most developers, but this is why you will love to work with me!

Thursday, March 25, 2010

What Image Formats Does Your Java Application Support?


Use this application to determine what image formats you can load and save in J2SE.

import javax.imageio.*;

class picture{

public picture(){}

void RWF()
{
//read image formats
System.out.println("R-IF:");
String[] readFormats=ImageIO.getReaderFormatNames();
for(int i=0;i<readFormats.length;i++)
System.out.println(readFormats[i]);

//write image formats
System.out.println("W-IF:");
String[] writeFormats=ImageIO.getWriterFormatNames();
for(int i=0;i<writeFormats.length;i++)
System.out.println(writeFormats[i]);
}
}

public class ReadWriteFormats{
public static void main(String[] args)
{
picture t=new picture();
t.RWF();
}
}

No comments: