Package com.tinyline.svg

Examples of com.tinyline.svg.SVGRaster


  public synchronized void init()
  {
    if (( width > 0 ) && ( raster == null )) {
      // Creates the SVG raster
      TinyPixbuf  buffer = new TinyPixbuf(width, height);
      raster = new SVGRaster(buffer);
      imageProducer = new XSVGImageProducer(raster);
      raster.setSVGImageProducer(imageProducer);

      // Sets the SVG raster size and the color model
      imageProducer.setColorModel(ColorModel.getRGBdefault());
View Full Code Here


   * @param h The height of this canvas.
   */
  public XSvgIcon( String uri, int w, int h )
  {
    TinyPixbuf  buffer = new TinyPixbuf(w, h);
    raster = new SVGRaster(buffer);
    imageProducer = new XSVGImageProducer(raster);
    raster.setSVGImageProducer(imageProducer);
   
    // Sets the SVG raster size and the color model
    imageProducer.setColorModel(ColorModel.getRGBdefault());
View Full Code Here

TOP

Related Classes of com.tinyline.svg.SVGRaster

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.