Package java.awt.image.renderable

Examples of java.awt.image.renderable.RenderableImage


/*  736 */       if (sources != null) {
/*  737 */         Vector renderedSources = new Vector();
/*  738 */         for (int i = 0; i < sources.size(); i++) {
/*  739 */           RenderContext rcOut = this.crif.mapRenderContext(i, rcIn, renderedPB, this);
/*      */
/*  743 */           RenderableImage src = (Serializable)sources.elementAt(i);
/*      */
/*  745 */           RenderedImage renderedImage = src.createRendering(rcOut);
/*  746 */           if (renderedImage == null) {
/*  747 */             return null;
/*      */           }
/*      */
/*  752 */           renderedSources.addElement(renderedImage);
View Full Code Here


/*  80 */     return new CompositeOpImage(source1, source2, hints, layout, alpha1, alpha2, premultiplied, destAlpha.equals(CompositeDescriptor.DESTINATION_ALPHA_FIRST));
/*     */   }
/*     */
/*     */   public RenderedImage create(RenderContext renderContext, ParameterBlock paramBlock)
/*     */   {
/* 100 */     RenderableImage alphaImage1 = (RenderableImage)paramBlock.getObjectParameter(0);
/*     */
/* 102 */     RenderableImage alphaImage2 = (RenderableImage)paramBlock.getObjectParameter(1);
/*     */
/* 106 */     RenderedImage rAlphaImage1 = alphaImage1.createRendering(renderContext);
/*     */
/* 108 */     RenderedImage rAlphaImage2 = alphaImage2.createRendering(renderContext);
/*     */
/* 111 */     ParameterBlock newPB = (ParameterBlock)paramBlock.clone();
/*     */
/* 115 */     newPB.set(rAlphaImage1, 0);
/* 116 */     newPB.set(rAlphaImage2, 1);
View Full Code Here

/*      */   }
/*      */
/*      */   public float getRenderableMinX(Long id)
/*      */     throws RemoteException
/*      */   {
/*  701 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  702 */     return ri.getMinX();
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public float getRenderableMinY(Long id)
/*      */     throws RemoteException
/*      */   {
/*  713 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  714 */     return ri.getMinY();
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public float getRenderableWidth(Long id)
/*      */     throws RemoteException
/*      */   {
/*  724 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  725 */     return ri.getWidth();
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public float getRenderableHeight(Long id)
/*      */     throws RemoteException
/*      */   {
/*  735 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  736 */     return ri.getHeight();
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public RenderedImage createScaledRendering(Long id, int w, int h, SerializableState hintsState)
/*      */     throws RemoteException
/*      */   {
/*  770 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  771 */     RenderingHints hints = (RenderingHints)hintsState.getObject();
/*  772 */     RenderedImage rendering = ri.createScaledRendering(w, h, hints);
/*  773 */     if ((rendering instanceof Serializable)) {
/*  774 */       return rendering;
/*      */     }
/*  776 */     return new SerializableRenderedImage(rendering);
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public RenderedImage createDefaultRendering(Long id)
/*      */     throws RemoteException
/*      */   {
/*  793 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  794 */     RenderedImage rendering = ri.createDefaultRendering();
/*  795 */     if ((rendering instanceof Serializable)) {
/*  796 */       return rendering;
/*      */     }
/*  798 */     return new SerializableRenderedImage(rendering);
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public RenderedImage createRendering(Long id, SerializableState renderContextState)
/*      */     throws RemoteException
/*      */   {
/*  821 */     RenderableImage ri = (RenderableImage)nodes.get(id);
/*  822 */     RenderContext renderContext = (RenderContext)renderContextState.getObject();
/*      */
/*  824 */     RenderedImage rendering = ri.createRendering(renderContext);
/*  825 */     if ((rendering instanceof Serializable)) {
/*  826 */       return rendering;
/*      */     }
/*  828 */     return new SerializableRenderedImage(rendering);
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public boolean isDynamic(Long id)
/*      */     throws RemoteException
/*      */   {
/* 1035 */     RenderableImage node = (RenderableImage)nodes.get(id);
/* 1036 */     return node.isDynamic();
/*      */   }
View Full Code Here

TOP

Related Classes of java.awt.image.renderable.RenderableImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.