Examples of toImage()


Examples of dwlab.base.images.ImageBuffer.toImage()

    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MINIMUM );
    draw( doubleMap.toNewImage(), "Minimum of source map and target map" );

    ImageBuffer buffer = sourceMap.toNewImageBuffer( DoubleMap.Channel.RED );
    targetMap.paste( buffer, DoubleMap.Channel.GREEN );
    draw( buffer.toImage(), "Pasting maps to different color channels" );
  }

 
  public static void draw( Image image, String text ) {
    image.draw( fPS, 400, 300, mapSize * 4d, mapSize * 4d );
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PText.toImage()

    textAttributes.put(TextAttribute.SIZE, size);
    f = f.deriveFont(textAttributes);

    PText p = new PText(text);
    p.setFont(f);
    return (BufferedImage) p.toImage();
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.