Package dwlab.base.images

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


      buffer.clear( 0xFF );
      for( int n = 0; n < 4; n++ ) {
        buffer.setPixel( n, 0, 0xFFFFFFFF );
        buffer.setPixel( 0, n, 0xFFFFFFFF );
      }
      lineImage = buffer.toImage();
    }
  }
 
 
  public static void drawMALine( double x1, double y1, double x2, double y2, int pos ) {
View Full Code Here


    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

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.