Code example for ImageTypeSpecifier

Methods: getNumBands

0
	 *  
	 * @see javax.imageio.spi.ImageWriterSpi#canEncodeImage(javax.imageio.ImageTypeSpecifier) 
	 */ 
	public boolean canEncodeImage(ImageTypeSpecifier its) {
 
		 int bands = its.getNumBands();
		 return bands == 1;
	} 
 
	/** 
	 * @see javax.imageio.spi.ImageWriterSpi#createWriterInstance(java.lang.Object) 
	 */ 
	public ImageWriter createWriterInstance(Object extension)
			throws IOException {
		return new AsciiGridsImageWriter(this);
	} 
 
	/** 
	 * @see javax.imageio.spi.IIOServiceProvider#getDescription(java.util.Locale) 
	 */ 
Contextual code suggestions in your IDE  Get Codota for Java