java.awt.image.renderable.RenderableImage Java Examples
The following examples show how to use
java.awt.image.renderable.RenderableImage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Operation.java From pumpernickel with MIT License | 6 votes |
private void writeMap(FilteredObjectOutputStream fout, Map<String, Object> map) throws IOException { fout.writeInt(map.size()); // our #equals() method relies on the exact order of map entries // being constant between two Operations, so let's sort the keys: SortedSet<String> sortedKeys = new TreeSet<>(); sortedKeys.addAll(map.keySet()); for (String key : sortedKeys) { fout.writeObject(key); Object v = map.get(key); if (v instanceof RenderableImage) { v = ((RenderableImage) v).createDefaultRendering(); } fout.writeObject(v); } }
Example #2
Source File: DiskMemImageGraphicsOrbit.java From orbit-image-analysis with GNU General Public License v3.0 | 5 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { Rectangle2D bounds = new Rectangle2D.Float(img.getMinX(), img.getMinY(), img.getWidth(), img.getHeight()); Rectangle2D trBounds = xform.createTransformedShape(bounds).getBounds2D(); doDraw(OpType.DRAW_RENDERABLE_IMAGE, trBounds, img, xform); }
Example #3
Source File: PeekGraphics.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #4
Source File: PeekGraphics.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #5
Source File: PeekGraphics.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #6
Source File: PeekGraphics.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #7
Source File: FXGraphics2D.java From SIMVA-SoS with Apache License 2.0 | 5 votes |
/** * Draws the renderable image. * * @param img the renderable image. * @param xform the transform. */ @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { RenderedImage ri = img.createDefaultRendering(); drawRenderedImage(ri, xform); }
Example #8
Source File: PeekGraphics.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #9
Source File: DummyGraphics2d.java From lams with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { String l = "drawRenderableImage(RenderableImage, AfflineTransform):" + "\n img = " + img + "\n xform = " + xform; log.println( l ); g2D.drawRenderableImage( img, xform ); }
Example #10
Source File: PeekGraphics.java From Bytecoder with Apache License 2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #11
Source File: PeekGraphics.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #12
Source File: RenderableImageOperation.java From pumpernickel with MIT License | 5 votes |
/** * Return the image to draw. */ public RenderableImage getImage() { Object img = coreProperties.get(PROPERTY_IMAGE); if (img instanceof RenderedImage) { // this may have been deserialized as a RenderedImage, see // how the Operation class serializes maps for details RenderedImage r = (RenderedImage) img; img = new BasicRenderableImage(r); coreProperties.put(PROPERTY_IMAGE, img); } return (RenderableImage) img; }
Example #13
Source File: FXGraphics2D.java From ccu-historian with GNU General Public License v3.0 | 5 votes |
/** * Draws the renderable image. * * @param img the renderable image. * @param xform the transform. */ @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { RenderedImage ri = img.createDefaultRendering(); drawRenderedImage(ri, xform); }
Example #14
Source File: PeekGraphics.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { if (img == null) { return; } mPrintMetrics.drawImage(this, img); mDrawingArea.addInfinite(); }
Example #15
Source File: SVGGraphics2D.java From jfreesvg with GNU General Public License v3.0 | 5 votes |
/** * Draws the renderable image. * * @param img the renderable image. * @param xform the transform. */ @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { RenderedImage ri = img.createDefaultRendering(); drawRenderedImage(ri, xform); }
Example #16
Source File: FXGraphics2D.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * Draws the renderable image. * * @param img the renderable image. * @param xform the transform. */ @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { RenderedImage ri = img.createDefaultRendering(); drawRenderedImage(ri, xform); }
Example #17
Source File: Graphics2DDelegate.java From consulo with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { myDelegate.drawRenderableImage(img, xform); }
Example #18
Source File: Graphics2DEmul.java From jmeter-plugins with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { throw new UnsupportedOperationException("Not supported yet."); }
Example #19
Source File: RichGraphics2D.java From scrimage with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { g2.drawRenderableImage(img, xform); }
Example #20
Source File: NonClearGraphics2D.java From lwjgl3-awt with MIT License | 4 votes |
public void drawRenderableImage(RenderableImage img, AffineTransform xform) { delegate.drawRenderableImage(img, xform); }
Example #21
Source File: PdfGraphics2D.java From gcs with Mozilla Public License 2.0 | 4 votes |
/** * @see Graphics2D#drawRenderableImage(RenderableImage, AffineTransform) */ @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { drawRenderedImage(img.createDefaultRendering(), xform); }
Example #22
Source File: GroupGraphics.java From gcs with Mozilla Public License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { groupG2D.drawRenderableImage(img, xform); alphaG2D.drawRenderableImage(img, xform); }
Example #23
Source File: Graphics2DProxy.java From FlatLaf with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage( RenderableImage img, AffineTransform xform ) { delegate.drawRenderableImage( img, xform ); }
Example #24
Source File: WaverGraphicsDecorator.java From consulo with Apache License 2.0 | 4 votes |
public void drawRenderableImage(final RenderableImage img, final AffineTransform xform) { myOriginal.drawRenderableImage(img, xform); }
Example #25
Source File: RenderableImageOperation.java From pumpernickel with MIT License | 4 votes |
/** * Assign the image to draw. */ public void setImage(RenderableImage img) { Objects.requireNonNull(img); coreProperties.put(PROPERTY_IMAGE, img); }
Example #26
Source File: PdfGraphics2D.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
/** * @see Graphics2D#drawRenderableImage(RenderableImage, AffineTransform) */ @Override public void drawRenderableImage( final RenderableImage img, final AffineTransform xform ) { drawRenderedImage( img.createDefaultRendering(), xform ); }
Example #27
Source File: GroupGraphics.java From sambox with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { groupG2D.drawRenderableImage(img, xform); alphaG2D.drawRenderableImage(img, xform); }
Example #28
Source File: SVGGraphics2D.java From birt with Eclipse Public License 1.0 | 4 votes |
public void drawRenderableImage( RenderableImage arg0, AffineTransform arg1 ) { logger.log( new Exception( Messages.getString( "SVGGraphics2D.drawRenderableImage.RenderableImage" ) ) ); //$NON-NLS-1$ }
Example #29
Source File: Graphics2DLog.java From consulo with Apache License 2.0 | 4 votes |
@Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { log("drawRenderableImage(RenderableImage, AffineTransform)"); myPeer.drawRenderableImage(img, xform); }
Example #30
Source File: Graphics2DDelegate.java From darklaf with MIT License | 4 votes |
@Override public void drawRenderableImage(final RenderableImage img, final AffineTransform xform) { g.drawRenderableImage(img, xform); }