/** Checks that the provided <code>ImageWriter</code> can encode * the provided <code>ColorModel</code> and <code>SampleModel</code>. * If not, an <code>IIOException</code> will be thrown. * @param writer The provided <code>ImageWriter</code>. * @param colorModel The provided <code>ColorModel</code>. * @param sampleModel The provided <code>SampleModel</code>. * @throws IIOException If the writer cannot encoded the provided image. */ public static final void canEncodeImage(ImageWriter writer, ColorModel colorModel, SampleModel sampleModel) throws IIOException { ImageTypeSpecifier type = null; if (colorModel != null && sampleModel != null) type = new ImageTypeSpecifier(colorModel, sampleModel); canEncodeImage(writer, type); }
/** Checks that the provided <code>ImageWriter</code> can encode * the provided <code>ColorModel</code> and <code>SampleModel</code>. * If not, an <code>IIOException</code> will be thrown. * @param writer The provided <code>ImageWriter</code>. * @param colorModel The provided <code>ColorModel</code>. * @param sampleModel The provided <code>SampleModel</code>. * @throws IIOException If the writer cannot encoded the provided image. */ public static final void canEncodeImage(ImageWriter writer, ColorModel colorModel, SampleModel sampleModel) throws IIOException { ImageTypeSpecifier type = null; if (colorModel != null && sampleModel != null) type = new ImageTypeSpecifier(colorModel, sampleModel); canEncodeImage(writer, type); }
/** Checks that the provided <code>ImageWriter</code> can encode * the provided <code>ColorModel</code> and <code>SampleModel</code>. * If not, an <code>IIOException</code> will be thrown. * @param writer The provided <code>ImageWriter</code>. * @param colorModel The provided <code>ColorModel</code>. * @param sampleModel The provided <code>SampleModel</code>. * @throws IIOException If the writer cannot encoded the provided image. */ public static final void canEncodeImage(ImageWriter writer, ColorModel colorModel, SampleModel sampleModel) throws IIOException { ImageTypeSpecifier type = null; if (colorModel != null && sampleModel != null) type = new ImageTypeSpecifier(colorModel, sampleModel); canEncodeImage(writer, type); }
ImageUtil.canEncodeImage(this, this.imageType);
ImageUtil.canEncodeImage(this, this.imageType);
ImageUtil.canEncodeImage(this, this.imageType);
throw new RuntimeException(I18N.getString("PNMImageWrite1")); ImageUtil.canEncodeImage(this, colorModel, sampleModel);
throw new RuntimeException(I18N.getString("PNMImageWrite1")); ImageUtil.canEncodeImage(this, colorModel, sampleModel);