Package java.awt.image.renderable

Examples of java.awt.image.renderable.RenderableImage


     * @return the minimum X coordinate of the rendering-independent image
     * data.
     */
    public float getRenderableMinX(Long id) throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getMinX();
    }
View Full Code Here


     *
     * @return the minimum X coordinate of the rendering-independent image
     * data.
     */
    public float getRenderableMinY(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getMinY();
    }
View Full Code Here

     * <code>RenderableImage</code> stored against the given ID.
     *
     * @return the width of the renderable image in user coordinates.
     */
    public float getRenderableWidth(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getWidth();
    }
View Full Code Here

     * <code>RenderableImage</code> stored against the given ID.
     *
     * @return the height of the renderable image in user coordinates.
     */
    public float getRenderableHeight(Long id) throws RemoteException {
  RenderableImage ri = (RenderableImage)nodes.get(id);
  return ri.getHeight();
    }
View Full Code Here

                 int w,
                 int h,
                 SerializableState hintsState)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderingHints hints = (RenderingHints)hintsState.getObject();
  RenderedImage rendering = ri.createScaledRendering(w, h, hints);
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     * @return a RenderedImage containing the rendered data.
     */
    public RenderedImage createDefaultRendering(Long id)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderedImage rendering = ri.createDefaultRendering();
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     */
    public RenderedImage createRendering(Long id,
           SerializableState renderContextState)
  throws RemoteException {

  RenderableImage ri = (RenderableImage)nodes.get(id);
  RenderContext renderContext =
      (RenderContext)renderContextState.getObject();
  RenderedImage rendering = ri.createRendering(renderContext);
  if (rendering instanceof Serializable) {
      return rendering;
  } else {
      return new SerializableRenderedImage(rendering);
  }
View Full Code Here

     * arguments may produce different results for the node represented
     * by the given id.
     */
    public boolean isDynamic(Long id) throws RemoteException {

  RenderableImage node = (RenderableImage)nodes.get(id);
  return node.isDynamic();
    }
View Full Code Here

        return new LanczosOpImage(source, layout, renderHints, scaleX, scaleY);
    }

    public Rectangle2D getBounds2D(ParameterBlock paramBlock) {

        RenderableImage source = paramBlock.getRenderableSource(0);

        double scaleX = paramBlock.getDoubleParameter(0);
        double scaleY = paramBlock.getDoubleParameter(1);

        // Get the source dimensions
        float x0 = (float) source.getMinX();
        float y0 = (float) source.getMinY();
        float w = (float) source.getWidth();
        float h = (float) source.getHeight();

        // Forward map the source using x0, y0, w and h
        float d_x0 = (float) (x0 * scaleX);
        float d_y0 = (float) (y0 * scaleY);
        float d_w = (float) (w * scaleX);
 
View Full Code Here

     * Gets the bounding box for the output of <code>SubsampleBinaryToGrayOpImage</code>.
     * This method satisfies the implementation of CRIF.
     */
    public Rectangle2D getBounds2D(ParameterBlock paramBlock) {       

        RenderableImage source = paramBlock.getRenderableSource(0);

        float scale_x = paramBlock.getFloatParameter(0);
        float scale_y = paramBlock.getFloatParameter(1);

  // Get the source dimensions
  float x0 = (float)source.getMinX();
  float y0 = (float)source.getMinY() ;
  float w = (float)source.getWidth();
  float h = (float)source.getHeight();
 
  // Forward map the source using x0, y0, w and h
  float d_x0 = x0 * scale_x;
  float d_y0 = y0 * scale_y;
  float d_w = w * scale_x;
 
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.