ImageIO: getWriterFormatNames() : ImageIO « javax.imageio « Java by API






ImageIO: getWriterFormatNames()

  


/*
reader BMP
reader bmp
reader jpeg
reader wbmp
reader gif
reader png
reader JPG
reader jpg
reader WBMP
reader JPEG
writer BMP
writer bmp
writer jpeg
writer wbmp
writer png
writer JPG
writer PNG
writer jpg
writer WBMP
writer JPEG

*/

import javax.imageio.ImageIO;

public class Main {
  static public void main(String args[]) throws Exception {
    String names[] = ImageIO.getReaderFormatNames();
    for (int i = 0; i < names.length; ++i) {
      System.out.println("reader " + names[i]);
    }

    names = ImageIO.getWriterFormatNames();
    for (int i = 0; i < names.length; ++i) {
      System.out.println("writer " + names[i]);
    }
  }
}

   
    
  








Related examples in the same category

1.ImageIO: createImageInputStream(Object input)
2.ImageIO: getImageReaders(Object input)
3.ImageIO: getImageReadersByFormatName(String formatName)
4.ImageIO: getImageReadersByMIMEType(String MIMEType)
5.ImageIO: getImageReadersBySuffix(String fileSuffix)
6.ImageIO: getImageWritersByFormatName(String formatName)
7.ImageIO: getImageWritersByMIMEType(String MIMEType)
8.ImageIO: getImageWritersBySuffix(String fileSuffix)
9.ImageIO: getReaderFormatNames()
10.ImageIO: getReaderMIMETypes()
11.ImageIO: getWriterMIMETypes()
12.ImageIO: read(File input)
13.ImageIO: read(URL input)
14.ImageIO: write(RenderedImage im, String formatName, File output)