/** * Returns the {@code BufferedImage} extracted from the given * {@code ImageSource}. Multiple requests will return the same image. * * @return the {@code BufferedImage} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public BufferedImage getBufferedImage() throws ImageConversionException { doFetch(false); return buffered; }
/** * Returns the {@code ColorModel} extracted from the * given {@code ImageSource}. Multiple requests will return the same model. * * @return the {@code ColorModel} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public ColorModel getColorModel() throws ImageConversionException { doFetch(true); return buffered != null ? buffered.getColorModel() : colorModel; }
/** * Returns the {@code BufferedImage} extracted from the given * {@code ImageSource}. Multiple requests will return the same image. * * @return the {@code BufferedImage} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public BufferedImage getBufferedImage() throws ImageConversionException { doFetch(false); return buffered; }
/** * Returns the {@code BufferedImage} extracted from the given * {@code ImageSource}. Multiple requests will return the same image. * * @return the {@code BufferedImage} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public BufferedImage getBufferedImage() throws ImageConversionException { doFetch(false); return mBuffered; }
/** * Returns the {@code ColorModel} extracted from the * given {@code ImageSource}. Multiple requests will return the same model. * * @return the {@code ColorModel} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public ColorModel getColorModel() throws ImageConversionException { doFetch(true); return buffered != null ? buffered.getColorModel() : colorModel; }
/** * Returns the {@code ColorModel} extracted from the * given {@code ImageSource}. Multiple requests will return the same model. * * @return the {@code ColorModel} * * @throws ImageConversionException if the given {@code ImageSource} cannot * be converted for some reason. */ public ColorModel getColorModel() throws ImageConversionException { doFetch(true); return mBuffered != null ? mBuffered.getColorModel() : mColorModel; }