/** * Draws <code>ri</code> into <code>g2d</code>. It does this be * requesting tiles from <code>ri</code> and drawing them individually * in <code>g2d</code> it also takes care of some colorspace and alpha * issues. * @param g2d The Graphics2D to draw into. * @param ri The image to be drawn. */ public static void drawImage(Graphics2D g2d, RenderedImage ri) { drawImage(g2d, wrap(ri)); }
/** * Returns an instance initialized as an identity * transfer function */ public static ComponentTransferFunction getIdentityTransfer(){ ConcreteComponentTransferFunction f = new ConcreteComponentTransferFunction(); f.type = IDENTITY; return f; }
protected CachableRed convertSourceCS(CachableRed cr) { if (csLinear) return GraphicsUtil.convertToLsRGB(cr); else return GraphicsUtil.convertTosRGB(cr); }
Graphics2D g2d = GraphicsUtil.createGraphics(dest); try { if (hints.containsKey(ImageTranscoder.KEY_BACKGROUND_COLOR)) {
/** * Paints this node without applying Filter, Mask, Composite and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (image == null) return; GraphicsUtil.drawImage(g2d, image); }
/** * This method will return the lut data in order * to construct a LookUpTable object */ public byte [] getLookupTable(){ buildLutData(); return lutData; } }
public ImageTagRegistry(URLImageCache rawCache, URLImageCache imgCache) { if (rawCache == null) rawCache = new URLImageCache(); if (imgCache == null) imgCache = new URLImageCache(); this.rawCache= rawCache; this.imgCache= imgCache; }
/** * Factory to create artithmatic CompositeRules. * 'out = k1*i1*i2 + k2*i1 + k3*i2 + k4' * Note that arithmatic CompositeRules are not singletons. */ public static CompositeRule ARITHMETIC (float k1, float k2, float k3, float k4) { return new CompositeRule(k1, k2, k3, k4); }
/** * This method will return the lut data in order * to construct a LookUpTable object */ public byte [] getLookupTable(){ buildLutData(); return lutData; } }
/** * This method will return the lut data in order * to construct a LookUpTable object */ public byte [] getLookupTable(){ buildLutData(); return lutData; } }
/** * This method will return the lut data in order * to construct a LookUpTable object */ public byte [] getLookupTable(){ buildLutData(); return lutData; } }
/** * Draws <code>ri</code> into <code>g2d</code>. It does this be * requesting tiles from <code>ri</code> and drawing them individually * in <code>g2d</code> it also takes care of some colorspace and alpha * issues. * @param g2d The Graphics2D to draw into. * @param ri The image to be drawn. */ public static void drawImage(Graphics2D g2d, RenderedImage ri) { drawImage(g2d, wrap(ri)); }
/** * Paints this node without applying Filter, Mask, Composite and clip. * * @param g2d the Graphics2D to use */ public void primitivePaint(Graphics2D g2d) { if (image == null) return; GraphicsUtil.drawImage(g2d, image); }
/** * Returns a linear transfer function */ public static ComponentTransferFunction getLinearTransfer(float slope, float intercept){ ConcreteComponentTransferFunction f = new ConcreteComponentTransferFunction(); f.type = LINEAR; f.slope = slope; f.intercept = intercept; return f; }
/** * This method will return the lut data in order * to construct a LookUpTable object */ public byte [] getLookupTable(){ buildLutData(); return lutData; } }
public ImageTagRegistry(URLImageCache rawCache, URLImageCache imgCache) { if (rawCache == null) rawCache = new URLImageCache(); if (imgCache == null) imgCache = new URLImageCache(); this.rawCache= rawCache; this.imgCache= imgCache; }
/** * Factory to create artithmatic CompositeRules. * 'out = k1*i1*i2 + k2*i1 + k3*i2 + k4' * Note that arithmatic CompositeRules are not singletons. */ public static CompositeRule ARITHMETIC (float k1, float k2, float k3, float k4) { return new CompositeRule(k1, k2, k3, k4); }