Package com.tinyline.tiny2d

Examples of com.tinyline.tiny2d.TinyPixbuf


   * ImageConsumers that are currently interested in the data for
   * this image and notify them that a frame is complete.
   */
  public void sendPixels()
  {
    TinyPixbuf pixbuf = raster.getPixelBuffer();
    int pixelscan     = pixbuf.width;
    int pixeloffset   = pixelscan * raster.clipRect.ymin + raster.clipRect.xmin;
    theConsumer.setPixels(raster.clipRect.xmin, raster.clipRect.ymin,
        raster.clipRect.xmax - raster.clipRect.xmin, raster.clipRect.ymax - raster.clipRect.ymin, model,
        pixbuf.pixels32, pixeloffset, pixelscan);
View Full Code Here


 
  /** Inits the ImageConsumer */
  private final void initConsumer()
  {
    if(theConsumer == null) return;
    TinyPixbuf pixbuf = raster.getPixelBuffer();
    if (( pixbuf.width > 0 ) && ( pixbuf.height > 0 ))
      theConsumer.setDimensions(pixbuf.width, pixbuf.height);
    theConsumer.setColorModel(model);
    int hints = ImageConsumer.TOPDOWNLEFTRIGHT | ImageConsumer.SINGLEPASS;
    theConsumer.setHints(hints);
View Full Code Here

 
  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
View Full Code Here

    if ( raster == null )
      start();
    SVGDocument doc = raster.createSVGDocument();
    try {
      // Read and parse the SVGT stream
      TinyPixbuf pixbuf = raster.getPixelBuffer();
      // Create the SVGT attributes parser
      SVGAttr attrParser = new SVGAttr(pixbuf.width, pixbuf.height);
      // Create the SVGT stream parser
      SVGParser parser = new SVGParser(attrParser);
      // Parse the input SVGT stream parser into the document
View Full Code Here

   * @param w The width of this canvas.
   * @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
View Full Code Here

    String str = "";
    loaded = false;
    SVGDocument doc = raster.createSVGDocument();
    try  {
      // Read and parse the SVGT stream
      TinyPixbuf pixbuf = raster.getPixelBuffer();
      // Create the SVGT attributes parser
      SVGAttr attrParser = new SVGAttr(pixbuf.width, pixbuf.height);
      // Create the SVGT stream parser
      SVGParser parser = new SVGParser(attrParser);
      // Parse the input SVGT stream parser into the document
View Full Code Here

TOP

Related Classes of com.tinyline.tiny2d.TinyPixbuf

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.