/** * {@inheritDoc} */ @Override public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { if (isRgbColorModel(srcColorModel) && isRgbColorModel(dstColorModel)) { return new BlendingRgbContext(this); } else if (isBgrColorModel(srcColorModel) && isBgrColorModel(dstColorModel)) { return new BlendingBgrContext(this); } throw new RasterFormatException("Incompatible color models:\n " + srcColorModel + "\n " + dstColorModel); }
/** * {@inheritDoc} */ @Override public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { if (isRgbColorModel(srcColorModel) && isRgbColorModel(dstColorModel)) { return new BlendingRgbContext(this); } else if (isBgrColorModel(srcColorModel) && isBgrColorModel(dstColorModel)) { return new BlendingBgrContext(this); } throw new RasterFormatException("Incompatible color models:\n " + srcColorModel + "\n " + dstColorModel); }
/** * {@inheritDoc} */ public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { if (isRgbColorModel(srcColorModel) && isRgbColorModel(dstColorModel)) { return new BlendingRgbContext(this); } else if (isBgrColorModel(srcColorModel) && isBgrColorModel(dstColorModel)) { return new BlendingBgrContext(this); } throw new RasterFormatException("Incompatible color models"); }
/** * {@inheritDoc} */ @Override public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { if (isRgbColorModel(srcColorModel) && isRgbColorModel(dstColorModel)) { return new BlendingRgbContext(this); } else if (isBgrColorModel(srcColorModel) && isBgrColorModel(dstColorModel)) { return new BlendingBgrContext(this); } throw new RasterFormatException("Incompatible color models:\n " + srcColorModel + "\n " + dstColorModel); }
/** * {@inheritDoc} */ public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) { if (isRgbColorModel(srcColorModel) && isRgbColorModel(dstColorModel)) { return new BlendingRgbContext(this); } else if (isBgrColorModel(srcColorModel) && isBgrColorModel(dstColorModel)) { return new BlendingBgrContext(this); } throw new RasterFormatException("Incompatible color models"); }